From: Bram Moolenaar Date: Fri, 11 Sep 2009 14:48:27 +0000 (+0000) Subject: updated for version 7.2-258 X-Git-Tag: v7.2.258 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=86c800a1b39603ba612a4a4f6e76c64c3d022789;p=vim updated for version 7.2-258 --- diff --git a/src/ui.c b/src/ui.c index aa8a8ac49..df8008c84 100644 --- a/src/ui.c +++ b/src/ui.c @@ -3055,18 +3055,17 @@ vcol2col(wp, lnum, vcol) int vcol; { /* try to advance to the specified column */ - int col = 0; int count = 0; char_u *ptr; + char_u *start; - ptr = ml_get_buf(wp->w_buffer, lnum, FALSE); + start = ptr = ml_get_buf(wp->w_buffer, lnum, FALSE); while (count <= vcol && *ptr != NUL) { - ++col; count += win_lbr_chartabsize(wp, ptr, count, NULL); mb_ptr_adv(ptr); } - return col; + return (int)(ptr - start); } #endif diff --git a/src/version.c b/src/version.c index be50d62b9..654b35028 100644 --- a/src/version.c +++ b/src/version.c @@ -676,6 +676,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 258, /**/ 257, /**/