diff options
author | zeertzjq <zeertzjq@outlook.com> | 2025-03-06 08:24:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-06 08:24:13 +0800 |
commit | 1a35eb9b568e1d916cf86dfb27c723e788254923 (patch) | |
tree | 8ee25036a082a444d3f9af5df8856c194eb5c60e /src/nvim/globals.h | |
parent | a261f602a067c7cb4de39fa6330053c08dcfd5e5 (diff) | |
download | rneovim-1a35eb9b568e1d916cf86dfb27c723e788254923.tar.gz rneovim-1a35eb9b568e1d916cf86dfb27c723e788254923.tar.bz2 rneovim-1a35eb9b568e1d916cf86dfb27c723e788254923.zip |
vim-patch:9.1.1175: inconsistent behaviour with exclusive selection and motion commands (#32745)
Problem: inconsistent behaviour with exclusive selection and motion
commands (aidancz)
Solution: adjust cursor position when selection is exclusive
(Jim Zhou)
fixes: vim/vim#16278
closes: vim/vim#16784
https://github.com/vim/vim/commit/c8cce711dde2d8abcf0929b3b12c4bfc5547a89d
Co-authored-by: Jim Zhou <jimzhouzzy@gmail.com>
Co-authored-by: Hirohito Higashi <h.east.727@gmail.com>
Diffstat (limited to 'src/nvim/globals.h')
-rw-r--r-- | src/nvim/globals.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/globals.h b/src/nvim/globals.h index e0bbba3d68..15152bc1a4 100644 --- a/src/nvim/globals.h +++ b/src/nvim/globals.h @@ -464,6 +464,8 @@ EXTERN bool VIsual_active INIT( = false); EXTERN bool VIsual_select INIT( = false); /// Register name for Select mode EXTERN int VIsual_select_reg INIT( = 0); +/// Whether incremented cursor during exclusive selection +EXTERN bool VIsual_select_exclu_adj INIT( = false); /// Restart Select mode when next cmd finished EXTERN int restart_VIsual_select INIT( = 0); /// Whether to restart the selection after a Select-mode mapping or menu. |