summaryrefslogtreecommitdiff
path: root/src/charset.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-10-10 15:34:33 +0200
committerBram Moolenaar <Bram@vim.org>2014-10-10 15:34:33 +0200
commite5ead831a2a638f145d5a7ae88f72d8526cbbde1 (patch)
treeeb430192b410f779ccb1fc0ad4afae345aa7dd63 /src/charset.c
parent7425b938cb5fc5b12c4342d9c4834c535f5bf772 (diff)
downloadvim-e5ead831a2a638f145d5a7ae88f72d8526cbbde1.zip
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)
Diffstat (limited to 'src/charset.c')
-rw-r--r--src/charset.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/charset.c b/src/charset.c
index fcc41ec33..006caa2a5 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -1184,6 +1184,8 @@ win_lbr_chartabsize(wp, line, s, col, headp)
{
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;
}