summaryrefslogtreecommitdiff
path: root/src/screen.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-02-25 21:52:33 +0000
committerBram Moolenaar <Bram@vim.org>2006-02-25 21:52:33 +0000
commit5c8837f9d7785c65c40f1485a779cc886750a5e9 (patch)
tree4f5ecb382974d741127e70d01975ee9046a5a90c /src/screen.c
parentc542aef58df8ea69708d29d6fcbfa44f5eb3481d (diff)
downloadvim-git-5c8837f9d7785c65c40f1485a779cc886750a5e9.tar.gz
updated for version 7.0207
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/screen.c b/src/screen.c
index 692318c29..adedce9ed 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -6167,10 +6167,10 @@ next_search_hl(win, shl, lnum, mincol)
|| (shl->rm.endpos[0].lnum == 0
&& shl->rm.endpos[0].col <= shl->rm.startpos[0].col))
{
- char_u *ml = ml_get_buf(shl->buf, lnum, FALSE);
+ char_u *ml;
matchcol = shl->rm.startpos[0].col;
- ml += matchcol;
+ ml = ml_get_buf(shl->buf, lnum, FALSE) + matchcol;
if (*ml == NUL)
{
++matchcol;