diff --git a/python3/vimspector/stack_trace.py b/python3/vimspector/stack_trace.py index 9fd33f38..30d11198 100644 --- a/python3/vimspector/stack_trace.py +++ b/python3/vimspector/stack_trace.py @@ -363,7 +363,8 @@ def _DrawThreads( self ): hl = 'CursorLineNr' ) for thread in s.threads: - icon = '+' if not thread.IsExpanded() else '-' + icon = '+' if ( thread.CanExpand() + and not thread.IsExpanded() ) else '-' line = utils.AppendToBuffer( self._buf, f'{icon} Thread {thread.id}: {thread.thread["name"]} ' diff --git a/tests/variables.test.vim b/tests/variables.test.vim index ab0747ee..e72c9610 100644 --- a/tests/variables.test.vim +++ b/tests/variables.test.vim @@ -1278,7 +1278,7 @@ function! Test_WatchAfterExit() call WaitForAssert( {-> \ AssertMatchList( \ [ - \ '+ Thread [0-9]\+: .* (terminated)', + \ '- Thread [0-9]\+: .* (terminated)', \ ], \ GetBufLine( winbufnr( g:vimspector_session_windows.stack_trace ), \ 1,