mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
updated for version 7.4.338
Problem: Cannot wrap lines taking indent into account. Solution: Add the 'breakindent' option. (many authors, final improvements by Christian Brabandt)
This commit is contained in:
8
src/ui.c
8
src/ui.c
@@ -3162,15 +3162,15 @@ vcol2col(wp, lnum, vcol)
|
||||
/* try to advance to the specified column */
|
||||
int count = 0;
|
||||
char_u *ptr;
|
||||
char_u *start;
|
||||
char_u *line;
|
||||
|
||||
start = ptr = ml_get_buf(wp->w_buffer, lnum, FALSE);
|
||||
line = ptr = ml_get_buf(wp->w_buffer, lnum, FALSE);
|
||||
while (count < vcol && *ptr != NUL)
|
||||
{
|
||||
count += win_lbr_chartabsize(wp, ptr, count, NULL);
|
||||
count += win_lbr_chartabsize(wp, line, ptr, count, NULL);
|
||||
mb_ptr_adv(ptr);
|
||||
}
|
||||
return (int)(ptr - start);
|
||||
return (int)(ptr - line);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user