diff options
author | Luuk van Baal <luukvbaal@gmail.com> | 2022-09-15 12:43:26 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-15 12:43:26 +0100 |
commit | 3735f11050616652525bf80b4fbcb2b3bfeab113 (patch) | |
tree | 0f03839e7c767f890f0cfa7b8fe8d966a6046595 /src/globals.h | |
parent | aeef1f7f6d8f6d4e84ffc9a24874f10403e4ddcd (diff) |
patch 9.0.0469: cursor moves if cmdwin is closed when 'splitscroll' is offv9.0.0469
Problem: Cursor moves if cmdwin is closed when 'splitscroll' is off.
Solution: Skip win_fix_cursor if called when cmdwin is open or closing.
(Luuk van Baal, closes #11134)
Diffstat (limited to 'src/globals.h')
-rw-r--r-- | src/globals.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/globals.h b/src/globals.h index 521832428a..568d3b3c82 100644 --- a/src/globals.h +++ b/src/globals.h @@ -1737,3 +1737,8 @@ EXTERN int channel_need_redraw INIT(= FALSE); // While executing a regexp and set to OPTION_MAGIC_ON or OPTION_MAGIC_OFF this // overrules p_magic. Otherwise set to OPTION_MAGIC_NOT_SET. EXTERN optmagic_T magic_overruled INIT(= OPTION_MAGIC_NOT_SET); + +#ifdef FEAT_CMDWIN +// Skip win_fix_cursor() call for 'nosplitscroll' when cmdwin is closed. +EXTERN int skip_win_fix_cursor INIT(= FALSE); +#endif |