vim-patch:7.4.489

Problem:    Cursor movement still wrong when 'lbr' is set and there is a
	    number column. (Hirohito Higashi)
Solution:   Add correction for number column. (Hiroyuki Takagi)

https://code.google.com/p/vim/source/detail?r=v7-4-489
This commit is contained in:
Florian Walch
2014-12-23 13:04:50 +01:00
parent 598f69b05e
commit 0a20cd7f50
2 changed files with 4 additions and 1 deletions

View File

@@ -1058,6 +1058,9 @@ int win_lbr_chartabsize(win_T *wp, char_u *line, char_u *s, colnr_T col, int *he
if (col >= (colnr_T)wp->w_width) { if (col >= (colnr_T)wp->w_width) {
col -= wp->w_width; col -= wp->w_width;
numberextra = wp->w_width - (numberextra - win_col_off2(wp)); numberextra = wp->w_width - (numberextra - win_col_off2(wp));
if (numberextra > 0) {
col %= numberextra;
}
if (*p_sbr != NUL) { if (*p_sbr != NUL) {
colnr_T sbrlen = (colnr_T)MB_CHARLEN(p_sbr); colnr_T sbrlen = (colnr_T)MB_CHARLEN(p_sbr);
if (col >= sbrlen) if (col >= sbrlen)

View File

@@ -249,7 +249,7 @@ static int included_patches[] = {
//492, //492,
491, 491,
//490, //490,
//489, 489,
//488, //488,
//487, //487,
//486, //486,