1
0
forked from aniani/vim

updated for version 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)
This commit is contained in:
Bram Moolenaar 2014-10-10 15:34:33 +02:00
parent 7425b938cb
commit e5ead831a2
2 changed files with 4 additions and 0 deletions

View File

@ -1184,6 +1184,8 @@ win_lbr_chartabsize(wp, line, s, col, headp)
{ {
col -= W_WIDTH(wp); col -= W_WIDTH(wp);
numberextra = W_WIDTH(wp) - (numberextra - win_col_off2(wp)); numberextra = W_WIDTH(wp) - (numberextra - win_col_off2(wp));
if (*p_sbr != NUL && col >= (colnr_T)STRLEN(p_sbr))
col -= (colnr_T)STRLEN(p_sbr);
if (numberextra > 0) if (numberextra > 0)
col = col % numberextra; col = col % numberextra;
} }

View File

@ -741,6 +741,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
473,
/**/ /**/
472, 472,
/**/ /**/