]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(termdebug): fix mousemodel restoration by comparing against null_string
authorErnie Rael <errael@raelity.com>
Mon, 10 Jun 2024 16:12:07 +0000 (18:12 +0200)
committerChristian Brabandt <cb@256bit.org>
Mon, 10 Jun 2024 16:12:07 +0000 (18:12 +0200)
closes: #14951

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/pack/dist/opt/termdebug/plugin/termdebug.vim

index 26c266598d2b634f926a531e0e95e8dff2945d1e..9d0f1ef2057d02d52b9b14814059280fd1573896 100644 (file)
@@ -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