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

runtime(termdebug): Fix saved_mousemodel check

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>
This commit is contained in:
laburnumT 2024-06-09 18:38:14 +02:00 committed by Christian Brabandt
parent aa925eeb97
commit 477402ecf9
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -1220,7 +1220,7 @@ def DeleteCommands()
win_gotoid(curwinid) win_gotoid(curwinid)
winbar_winids = [] winbar_winids = []
if exists('saved_mousemodel') if saved_mousemodel != ''
&mousemodel = saved_mousemodel &mousemodel = saved_mousemodel
saved_mousemodel = null_string saved_mousemodel = null_string
try try