runtime(termdebug): Fix saved_mousemodel check Commit: https://github.com/vim/vim/commit/477402ecf99b09087c2517398f05e02f082ef192 Author: laburnumT <laburnum...@gmail.com> Date: Sun Jun 9 18:38:14 2024 +0200
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 <laburnum...@gmail.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 d083b7ec9..26c266598 100644 --- a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim +++ b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim @@ -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 -- -- 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/E1sGLfD-002Swr-H6%40256bit.org.