Skip to content

Commit 5cc3f32

Browse files
Skip variable type print on empty types
1 parent 0b04cd0 commit 5cc3f32

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python3/vimspector/variables.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,8 +712,10 @@ def _DrawVariables( self, view, variables, indent_len, is_short = False ):
712712
value = ''
713713

714714
text = f'{indent}{marker}{icon} {name}: {value}'
715-
else:
715+
elif len( kind ) > 0:
716716
text = f'{indent}{marker}{icon} {name} ({kind}): {value}'
717+
else:
718+
text = f'{indent}{marker}{icon} {name}: {value}'
717719

718720
line = utils.AppendToBuffer(
719721
view.buf,

0 commit comments

Comments
 (0)