From: Bram Moolenaar Date: Tue, 16 Jan 2007 15:01:41 +0000 (+0000) Subject: updated for version 7.0-186 X-Git-Tag: v7.0.186 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb7c90c0face9790bdfe04cdfec95681fbc7b3e0;p=thirdparty%2Fvim.git updated for version 7.0-186 --- diff --git a/src/search.c b/src/search.c index de99f2c439..f38b626423 100644 --- a/src/search.c +++ b/src/search.c @@ -812,7 +812,11 @@ searchit(win, buf, pos, dir, pat, count, options, pat_use, stop_lnum) #ifdef FEAT_MBYTE if (has_mbyte) { - ptr = ml_get_buf(buf, pos->lnum, FALSE); + /* 'e' offset may put us just below the last line */ + if (pos->lnum > buf->b_ml.ml_line_count) + ptr = ""; + else + ptr = ml_get_buf(buf, pos->lnum, FALSE); pos->col -= (*mb_head_off)(ptr, ptr + pos->col); } #endif diff --git a/src/version.c b/src/version.c index cb266270c4..587e05dd3f 100644 --- a/src/version.c +++ b/src/version.c @@ -666,6 +666,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 186, /**/ 185, /**/