0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

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>
This commit is contained in:
Ernie Rael 2024-06-10 18:12:07 +02:00 committed by Christian Brabandt
parent c593b9ead9
commit dfc21db0b0
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -109,7 +109,7 @@ var winbar_winids = []
var plus_map_saved = {} var plus_map_saved = {}
var minus_map_saved = {} var minus_map_saved = {}
var k_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. # Need either the +terminal feature or +channel and the prompt buffer.
@ -1220,7 +1220,7 @@ def DeleteCommands()
win_gotoid(curwinid) win_gotoid(curwinid)
winbar_winids = [] winbar_winids = []
if saved_mousemodel != '' if saved_mousemodel isnot null_string
&mousemodel = saved_mousemodel &mousemodel = saved_mousemodel
saved_mousemodel = null_string saved_mousemodel = null_string
try try