mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
updated for version 7.2-258
This commit is contained in:
7
src/ui.c
7
src/ui.c
@@ -3055,18 +3055,17 @@ vcol2col(wp, lnum, vcol)
|
|||||||
int vcol;
|
int vcol;
|
||||||
{
|
{
|
||||||
/* try to advance to the specified column */
|
/* try to advance to the specified column */
|
||||||
int col = 0;
|
|
||||||
int count = 0;
|
int count = 0;
|
||||||
char_u *ptr;
|
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)
|
while (count <= vcol && *ptr != NUL)
|
||||||
{
|
{
|
||||||
++col;
|
|
||||||
count += win_lbr_chartabsize(wp, ptr, count, NULL);
|
count += win_lbr_chartabsize(wp, ptr, count, NULL);
|
||||||
mb_ptr_adv(ptr);
|
mb_ptr_adv(ptr);
|
||||||
}
|
}
|
||||||
return col;
|
return (int)(ptr - start);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -676,6 +676,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
258,
|
||||||
/**/
|
/**/
|
||||||
257,
|
257,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user