mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 15:28:17 +00:00
vim-patch:7.4.640
Problem: After deleting characters in Insert mode such that lines are
joined undo does not work properly. (issue 324)
Solution: Use Insstart instead of Insstart_orig. (Christian Brabandt)
c3bbad085c
This commit is contained in:
@@ -7427,15 +7427,14 @@ static int ins_bs(int c, int mode, int *inserted_space_p)
|
||||
* delete newline!
|
||||
*/
|
||||
if (curwin->w_cursor.col == 0) {
|
||||
lnum = Insstart_orig.lnum;
|
||||
lnum = Insstart.lnum;
|
||||
if (curwin->w_cursor.lnum == lnum || revins_on) {
|
||||
if (u_save((linenr_T)(curwin->w_cursor.lnum - 2),
|
||||
(linenr_T)(curwin->w_cursor.lnum + 1)) == FAIL) {
|
||||
return FALSE;
|
||||
}
|
||||
--Insstart_orig.lnum;
|
||||
Insstart_orig.col = MAXCOL;
|
||||
Insstart = Insstart_orig;
|
||||
--Insstart.lnum;
|
||||
Insstart.col = MAXCOL;
|
||||
}
|
||||
/*
|
||||
* In replace mode:
|
||||
|
Reference in New Issue
Block a user