runtime(termdebug): fix mousemodel restoration by comparing against null_string

Commit: 
https://github.com/vim/vim/commit/dfc21db0b0f9c61d66aeefc02ec4c06ec645bd09
Author: Ernie Rael <err...@raelity.com>
Date:   Mon Jun 10 18:12:07 2024 +0200

    runtime(termdebug): fix mousemodel restoration by comparing against 
null_string
    
    closes: https://github.com/vim/vim/issues/14951
    
    Signed-off-by: Ernie Rael <err...@raelity.com>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim 
b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
index 26c266598..9d0f1ef20 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

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1sGhfm-004UpQ-Gi%40256bit.org.

Raspunde prin e-mail lui