vim-patch:8.0.0341 (#6151)

Problem:    When using complete() and typing a character undo is saved after
            the character was inserted. (Shougo)
Solution:   Save for undo before inserting the character.

d56a79d339
This commit is contained in:
Shougo
2017-02-23 20:37:46 +09:00
committed by Justin M. Keyes
parent 34e24cb2f7
commit 4e21311f9c
2 changed files with 23 additions and 0 deletions

View File

@@ -3001,6 +3001,9 @@ static void ins_compl_addleader(int c)
{
int cc;
if (stop_arrow() == FAIL) {
return;
}
if (has_mbyte && (cc = (*mb_char2len)(c)) > 1) {
char_u buf[MB_MAXBYTES + 1];