FixUp: Display in watch window, and indent in popup

This commit is contained in:
Ben Jackson 2021-01-06 14:51:35 +00:00
commit f3c39e12ab

View file

@ -560,7 +560,7 @@ class VariablesView( object ):
else:
icon = '+' if ( watch.result.IsExpandable() and
not watch.result.IsExpanded() ) else '-'
marker = '*' if watch.result.changed else ' ',
marker = '*' if watch.result.changed else ' '
leader = ' Result: '
line = '{indent}{marker}{icon}{leader}{result}'.format(
@ -575,8 +575,7 @@ class VariablesView( object ):
view.lines[ line ] = watch.result
if watch.result.ShouldDrawDrillDown():
indent = 4
self._DrawVariables( view, watch.result.variables, indent, is_short )
self._DrawVariables( view, watch.result.variables, indent + 2, is_short )
def _ConsumeVariables( self, draw, parent, message ):
new_variables = []