summaryrefslogtreecommitdiff
path: root/python3
diff options
context:
space:
mode:
authorJason Woofenden <jason@jasonwoof.com>2019-05-10 15:53:47 -0400
committerJason Woofenden <jason@jasonwoof.com>2019-05-10 15:53:47 -0400
commit706489395659a786291d475b989eb545071a5a30 (patch)
tree3d71963ce10092ea908d7a9f425cd038fef76061 /python3
parent903305f8e7895cddf838639e9280fb73568cfe69 (diff)
downloadvdebug-706489395659a786291d475b989eb545071a5a30.zip
fix not-"expanded" mode in watch window
Diffstat (limited to 'python3')
-rw-r--r--python3/vdebug/event.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python3/vdebug/event.py b/python3/vdebug/event.py
index 924b928..49eb893 100644
--- a/python3/vdebug/event.py
+++ b/python3/vdebug/event.py
@@ -146,7 +146,8 @@ class WatchWindowPropertyGetEvent(Event):
context_res = self.api.property_get(name)
rend = vimui.ContextGetResponseRenderer(context_res)
output = rend.render(pointer_index - 1)
- self.ui.windows.watch().delete(lineno, lineno+1)
+ if opts.Options.get('watch_window_style') == 'expanded':
+ self.ui.windows.watch().delete(lineno, lineno+1)
self.ui.windows.watch().insert(output.rstrip(), lineno-1, True)