diff options
author | laburnumT <laburnumtec@gmail.com> | 2024-06-09 18:38:14 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-06-09 18:38:37 +0200 |
commit | 477402ecf99b09087c2517398f05e02f082ef192 (patch) | |
tree | 87c95d6a4bdf5551851f9b347705c6a51156cd58 /runtime | |
parent | aa925eeb97bd294d4a5253a3194949a37cbc8365 (diff) |
runtime(termdebug): Fix saved_mousemodel check
Fix issue introduced by 23f29ffc64276dd790581f98b86a0a6435b7eb22 where
saved_mousemodel is introduced as a variable, so the exists check will
always be true.
Move to check the value of saved_mousemodel instead.
closes: #14946
Signed-off-by: laburnumT <laburnumtec@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/pack/dist/opt/termdebug/plugin/termdebug.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim index d083b7ec9d..26c266598d 100644 --- a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim +++ b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim @@ -1220,7 +1220,7 @@ def DeleteCommands() win_gotoid(curwinid) winbar_winids = [] - if exists('saved_mousemodel') + if saved_mousemodel != '' &mousemodel = saved_mousemodel saved_mousemodel = null_string try |