vim-patch:7.4.473

vim-patch:7.4.473

Problem:    Cursor movement is incorrect when there is a number
            column/sign/fold column and 'sbr' is displayed.
Solution:   Adjust the column for 'sbr'. (Christian Brabandt)

https://code.google.com/p/vim/source/detail?r=v7-4-473
This commit is contained in:
Felipe Morales
2014-11-21 13:21:35 -03:00
parent 42dc00b767
commit c82eb31a5d
2 changed files with 3 additions and 1 deletions

View File

@@ -1058,6 +1058,8 @@ 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) {
col -= wp->w_width;
numberextra = wp->w_width - (numberextra - win_col_off2(wp));
if (*p_sbr != NUL && col >= (colnr_T)STRLEN(p_sbr))
col -= (colnr_T)STRLEN(p_sbr);
if (numberextra > 0) {
col = col % numberextra;
}

View File

@@ -193,7 +193,7 @@ static int included_patches[] = {
//476,
//475,
//474,
//473,
473,
472,
//471,
//470,