patch 9.1.1175: inconsistent behaviour with exclusive selection and motion commands
Problem: inconsistent behaviour with exclusive selection and motion
commands (aidancz)
Solution: adjust cursor position when selection is exclusive
(Jim Zhou)
fixes: #16278
closes: #16784
Co-authored-by: Hirohito Higashi <h.east.727@gmail.com>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Jim Zhou <jimzhouzzy@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/src/globals.h b/src/globals.h
index 3827c1a..ef78b44 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -1144,6 +1144,8 @@
// whether Select mode is active
EXTERN int VIsual_select_reg INIT(= 0);
// register name for Select mode
+EXTERN int VIsual_select_exclu_adj INIT(= FALSE);
+ // whether incremented cursor during exclusive selection
EXTERN int restart_VIsual_select INIT(= 0);
// restart Select mode when next cmd finished
EXTERN int VIsual_reselect;