]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(termdebug): Fix saved_mousemodel check
authorlaburnumT <laburnumtec@gmail.com>
Sun, 9 Jun 2024 16:38:14 +0000 (18:38 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 9 Jun 2024 16:38:37 +0000 (18:38 +0200)
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>
runtime/pack/dist/opt/termdebug/plugin/termdebug.vim

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