vim-patch:7.4.1084

Problem:    Using "." to repeat CTRL-A in Visual mode increments the wrong
            numbers.
Solution:   Append right size to the redo buffer. (Ozaki Kiichi)

e1edc1caba
This commit is contained in:
watiko
2016-01-15 18:07:45 +09:00
parent 594e3a64de
commit 2f52ae18e7
3 changed files with 30 additions and 6 deletions

View File

@@ -3043,7 +3043,7 @@ static void prep_redo_visual(cmdarg_T *cap)
AppendCharToRedobuff('$');
} else if (curbuf->b_visual.vi_end.col > curbuf->b_visual.vi_start.col) {
AppendNumberToRedobuff(curbuf->b_visual.vi_end.col -
curbuf->b_visual.vi_start.col - 1);
curbuf->b_visual.vi_start.col);
AppendCharToRedobuff(' ');
}
}