vim-patch:8.0.0533: abbreviation doesn't work after backspacing newline

Problem:    Abbreviation doesn't work after backspacing newline. (Hkonrk)
Solution:   Set the insert start column. (closes vim/vim#1609)
878c263a48
This commit is contained in:
Jan Edmund Lazo
2018-06-07 20:36:22 -04:00
parent aaece78492
commit 3bcbf802ce
2 changed files with 14 additions and 5 deletions

View File

@@ -7545,9 +7545,7 @@ static bool ins_bs(int c, int mode, int *inserted_space_p)
curwin->w_cursor.coladd = 0;
}
/*
* delete newline!
*/
// Delete newline!
if (curwin->w_cursor.col == 0) {
lnum = Insstart.lnum;
if (curwin->w_cursor.lnum == lnum || revins_on) {
@@ -7556,7 +7554,7 @@ static bool ins_bs(int c, int mode, int *inserted_space_p)
return false;
}
Insstart.lnum--;
Insstart.col = MAXCOL;
Insstart.col = STRLEN(ml_get(Insstart.lnum));
}
/*
* In replace mode: