Mercurial > vim
changeset 6278:1cdd5804b538 v7.4.473
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)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 10 Oct 2014 15:34:33 +0200 |
parents | 37780ce14190 |
children | 48540909aba2 |
files | src/charset.c src/version.c |
diffstat | 2 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/charset.c +++ b/src/charset.c @@ -1184,6 +1184,8 @@ win_lbr_chartabsize(wp, line, s, col, he { col -= W_WIDTH(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) col = col % numberextra; }