Use a prompt buffer for adding watches

This very new feature makes it kind of nice to add new watches in the
place where they will appear, keeping the eye in the same screen
location.
This commit is contained in:
Ben Jackson 2018-06-09 22:33:22 +01:00
commit 920db068c6
7 changed files with 54 additions and 9 deletions

View file

@ -48,7 +48,7 @@ class StackTraceView( object ):
self._currentThread = None
self._threads = []
with utils.ModifiableScratchBuffer( self._buf ):
self._buf[:] = None
utils.ClearBuffer( self._buf )
def ConnectionClosed( self ):
self.Clear()
@ -88,7 +88,7 @@ class StackTraceView( object ):
self._line_to_thread.clear()
with utils.ModifiableScratchBuffer( self._buf ):
self._buf[:] = None
utils.ClearBuffer( self._buf )
for thread in self._threads:
icon = '+' if '_frames' not in thread else '-'