From 5cc3f32841d1ba55b202da78621b7dbcfdf857e9 Mon Sep 17 00:00:00 2001 From: samisalreadytaken <46823719+samisalreadytaken@users.noreply.github.com> Date: Tue, 10 Sep 2024 21:39:55 +0300 Subject: [PATCH] Skip variable type print on empty types --- python3/vimspector/variables.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python3/vimspector/variables.py b/python3/vimspector/variables.py index 4aa9262d..71a5e748 100644 --- a/python3/vimspector/variables.py +++ b/python3/vimspector/variables.py @@ -712,8 +712,10 @@ def _DrawVariables( self, view, variables, indent_len, is_short = False ): value = '' text = f'{indent}{marker}{icon} {name}: {value}' - else: + elif len( kind ) > 0: text = f'{indent}{marker}{icon} {name} ({kind}): {value}' + else: + text = f'{indent}{marker}{icon} {name}: {value}' line = utils.AppendToBuffer( view.buf,