Skip to content

Commit 17ddabc

Browse files
Change running thread icon to not-expandable
1 parent 5e24df8 commit 17ddabc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

python3/vimspector/stack_trace.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,8 @@ def _DrawThreads( self ):
363363
hl = 'CursorLineNr' )
364364

365365
for thread in s.threads:
366-
icon = '+' if not thread.IsExpanded() else '-'
366+
icon = '+' if ( thread.CanExpand()
367+
and not thread.IsExpanded() ) else '-'
367368
line = utils.AppendToBuffer(
368369
self._buf,
369370
f'{icon} Thread {thread.id}: {thread.thread["name"]} '

tests/variables.test.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1278,7 +1278,7 @@ function! Test_WatchAfterExit()
12781278
call WaitForAssert( {->
12791279
\ AssertMatchList(
12801280
\ [
1281-
\ '+ Thread [0-9]\+: .* (terminated)',
1281+
\ '- Thread [0-9]\+: .* (terminated)',
12821282
\ ],
12831283
\ GetBufLine( winbufnr( g:vimspector_session_windows.stack_trace ),
12841284
\ 1,

0 commit comments

Comments
 (0)