From d11f805150e644aa1c005729505c05971bdecc39 Mon Sep 17 00:00:00 2001 From: oni-link Date: Tue, 8 Apr 2014 20:08:30 +0200 Subject: vim-patch:7.4.186 Problem: Insert in Visual mode sometimes gives incorrect results. (Dominique Pelle) Solution: Remember the original insert start position. (Christian Brabandt, Dominique Pelle) https://code.google.com/p/vim/source/detail?r=4d12112c5efae071aecbeed1a7196f18950457b3 --- src/globals.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/globals.h') diff --git a/src/globals.h b/src/globals.h index 0ea3525c50..731c99623c 100644 --- a/src/globals.h +++ b/src/globals.h @@ -585,6 +585,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; + /* * Stuff for VREPLACE mode. */ -- cgit