summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErnie Rael <errael@raelity.com>2024-06-10 18:12:07 +0200
committerChristian Brabandt <cb@256bit.org>2024-06-10 18:12:07 +0200
commitdfc21db0b0f9c61d66aeefc02ec4c06ec645bd09 (patch)
tree24475391efae00e6beec5c37dd20ac5ea1c47f8f
parentc593b9ead9b4346724187ab604fa593ead1fa4b2 (diff)
runtime(termdebug): fix mousemodel restoration by comparing against null_string
closes: #14951 Signed-off-by: Ernie Rael <errael@raelity.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
-rw-r--r--runtime/pack/dist/opt/termdebug/plugin/termdebug.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
index 26c266598d..9d0f1ef205 100644
--- a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
+++ b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
@@ -109,7 +109,7 @@ var winbar_winids = []
var plus_map_saved = {}
var minus_map_saved = {}
var k_map_saved = {}
-var saved_mousemodel = ''
+var saved_mousemodel = null_string
# Need either the +terminal feature or +channel and the prompt buffer.
@@ -1220,7 +1220,7 @@ def DeleteCommands()
win_gotoid(curwinid)
winbar_winids = []
- if saved_mousemodel != ''
+ if saved_mousemodel isnot null_string
&mousemodel = saved_mousemodel
saved_mousemodel = null_string
try