diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-04-05 20:41:53 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-04-05 20:41:53 +0000 |
commit | 910f66f90c928da8b607ccfdc12fc33d9cb8d4a9 (patch) | |
tree | 152a03d1d7ea3e8d433addba4f463d8a7a68a5fd /src/search.c | |
parent | e2f98b95c8071f772695602cd4f714dc588eb8e7 (diff) | |
download | vim-git-910f66f90c928da8b607ccfdc12fc33d9cb8d4a9.tar.gz |
updated for version 7.0c10v7.0c10
Diffstat (limited to 'src/search.c')
-rw-r--r-- | src/search.c | 7 |
1 files changed, 7 insertions, 0 deletions
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 { |