Mercurial > vim
comparison src/search.c @ 819:23f82b5d2814 v7.0c10
updated for version 7.0c10
author | vimboss |
---|---|
date | Wed, 05 Apr 2006 20:41:53 +0000 |
parents | 4a79d6d376f0 |
children | dc8197342755 |
comparison
equal
deleted
inserted
replaced
818:1f929f3ca806 | 819:23f82b5d2814 |
---|---|
807 | 807 |
808 if (options & SEARCH_END && !(options & SEARCH_NOOF)) | 808 if (options & SEARCH_END && !(options & SEARCH_NOOF)) |
809 { | 809 { |
810 pos->lnum = lnum + endpos.lnum; | 810 pos->lnum = lnum + endpos.lnum; |
811 pos->col = endpos.col - 1; | 811 pos->col = endpos.col - 1; |
812 #ifdef FEAT_MBYTE | |
813 if (has_mbyte) | |
814 { | |
815 ptr = ml_get_buf(buf, pos->lnum, FALSE); | |
816 pos->col -= (*mb_head_off)(ptr, ptr + pos->col); | |
817 } | |
818 #endif | |
812 } | 819 } |
813 else | 820 else |
814 { | 821 { |
815 pos->lnum = lnum + matchpos.lnum; | 822 pos->lnum = lnum + matchpos.lnum; |
816 pos->col = matchpos.col; | 823 pos->col = matchpos.col; |