Skip to content

Commit fdcf741

Browse files
committed
Fix overflow generating fake session ID; use a colorscheme in minimal vimrc
1 parent 6cb63b9 commit fdcf741

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

python3/vimspector/output.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ def CategoryToBuffer( category ):
4444

4545
VIEWS = set()
4646

47+
TMP_SESSION_ID=-1
4748

4849
def ShowOutputInWindow( win_id, category ):
4950
for view in VIEWS:
@@ -66,8 +67,9 @@ def __init__( self, window, api_prefix, session_id = None ):
6667
VIEWS.add( self )
6768

6869
if session_id is None:
69-
# FIXME: hack?
70-
self._session_id = hash( self )
70+
global TMP_SESSION_ID
71+
self._session_id = TMP_SESSION_ID
72+
TMP_SESSION_ID -= 1
7173
else:
7274
self._session_id = session_id
7375

support/minimal_vimrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
let g:vimspector_clean = 1
22
let s:vimspector_path = expand( '<sfile>:p:h:h' )
33
let g:vimspector_enable_mappings = 'HUMAN'
4+
colorscheme habamax
45
exe 'source ' . s:vimspector_path . '/tests/vimrc'
56

0 commit comments

Comments
 (0)