0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

updated for version 7.4.388

Problem:    With 'linebreak' set and 'list' unset a Tab is not counted
            properly. (Kent Sibilev)
Solution:   Check the 'list' option. (Christian Brabandt)
This commit is contained in:
Bram Moolenaar
2014-07-30 16:44:22 +02:00
parent 4f5ce33d41
commit b81c85d8f3
4 changed files with 21 additions and 1 deletions

View File

@@ -4494,7 +4494,7 @@ win_line(wp, lnum, startrow, endrow, nochange)
tab_len = (int)wp->w_buffer->b_p_ts
- vcol % (int)wp->w_buffer->b_p_ts - 1;
#ifdef FEAT_LINEBREAK
if (!wp->w_p_lbr)
if (!wp->w_p_lbr || !wp->w_p_list)
#endif
/* tab amount depends on current column */
n_extra = tab_len;