summaryrefslogtreecommitdiffstats
path: root/src/globals.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-02-22 23:03:55 +0100
committerBram Moolenaar <Bram@vim.org>2014-02-22 23:03:55 +0100
commitb1d90a3d770c5e513e6cad8284a5168ac5535883 (patch)
tree5cf472c7e8c9b9c43ddabaeef69927364eafdbc5 /src/globals.h
parent631abc35dfc7ad87255c940fd22eee416c731658 (diff)
updated for version 7.4.186v7.4.186
Problem: Insert in Visual mode sometimes gives incorrect results. (Dominique Pelle) Solution: Remember the original insert start position. (Christian Brabandt, Dominique Pelle)
Diffstat (limited to 'src/globals.h')
-rw-r--r--src/globals.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/globals.h b/src/globals.h
index f72915411b..fd4e70c742 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -752,6 +752,12 @@ EXTERN pos_T saved_cursor /* w_cursor before formatting text. */
*/
EXTERN pos_T Insstart; /* This is where the latest
* insert/append mode started. */
+
+/* This is where the latest insert/append mode started. In contrast to
+ * Insstart, this won't be reset by certain keys and is needed for
+ * op_insert(), to detect correctly where inserting by the user started. */
+EXTERN pos_T Insstart_orig;
+
#ifdef FEAT_VREPLACE
/*
* Stuff for VREPLACE mode.