summaryrefslogtreecommitdiff
path: root/src/charset.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2008-02-20 13:59:32 +0000
committerBram Moolenaar <Bram@vim.org>2008-02-20 13:59:32 +0000
commit9c33a7c971279b77fe4fc74076f5735b88ead71b (patch)
treebabd6102bbfeb6d2ab1689a2e2c7d3e09595d920 /src/charset.c
parent561f9db88cf4e69f27fcca1b02e78e7b72294acc (diff)
downloadvim-git-9c33a7c971279b77fe4fc74076f5735b88ead71b.tar.gz
updated for version 7.1-260v7.1.260
Diffstat (limited to 'src/charset.c')
-rw-r--r--src/charset.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/charset.c b/src/charset.c
index 32d755532..a79f0fd02 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -1290,7 +1290,8 @@ getvcol(wp, pos, start, cursor, end)
/* If a double-cell char doesn't fit at the end of a line
* it wraps to the next line, it's like this char is three
* cells wide. */
- if (incr == 2 && wp->w_p_wrap && in_win_border(wp, vcol))
+ if (incr == 2 && wp->w_p_wrap && MB_BYTE2LEN(*ptr) > 1
+ && in_win_border(wp, vcol))
{
++incr;
head = 1;