From 910f66f90c928da8b607ccfdc12fc33d9cb8d4a9 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 5 Apr 2006 20:41:53 +0000 Subject: updated for version 7.0c10 --- src/search.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/search.c') diff --git a/src/search.c b/src/search.c index 41f38a3d1..a063a26be 100644 --- a/src/search.c +++ b/src/search.c @@ -809,6 +809,13 @@ searchit(win, buf, pos, dir, pat, count, options, pat_use, stop_lnum) { pos->lnum = lnum + endpos.lnum; pos->col = endpos.col - 1; +#ifdef FEAT_MBYTE + if (has_mbyte) + { + ptr = ml_get_buf(buf, pos->lnum, FALSE); + pos->col -= (*mb_head_off)(ptr, ptr + pos->col); + } +#endif } else { -- cgit v1.2.3