summaryrefslogtreecommitdiff
path: root/src/mark.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2004-12-19 22:46:22 +0000
committerBram Moolenaar <Bram@vim.org>2004-12-19 22:46:22 +0000
commit1cd871b5341bf43ee99e136844e3131014880f92 (patch)
tree6bd9573dbc14de3c4ec85e424cbec9c8d1ee0ed8 /src/mark.c
parent46c9c73de8def79baf8f0a34a12549f6c14944f3 (diff)
downloadvim-git-1cd871b5341bf43ee99e136844e3131014880f92.tar.gz
updated for version 7.0023v7.0023
Diffstat (limited to 'src/mark.c')
-rw-r--r--src/mark.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mark.c b/src/mark.c
index ea941e59b..6a149bfac 100644
--- a/src/mark.c
+++ b/src/mark.c
@@ -630,15 +630,11 @@ mark_line(mp, lead_len)
return NULL;
/* Truncate the line to fit it in the window */
len = 0;
- for (p = s; *p != NUL; ++p)
+ for (p = s; *p != NUL; mb_ptr_adv(p))
{
len += ptr2cells(p);
if (len >= Columns - lead_len)
break;
-#ifdef FEAT_MBYTE
- if (has_mbyte)
- p += (*mb_ptr2len_check)(p) - 1;
-#endif
}
*p = NUL;
return s;