mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -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:
parent
4f5ce33d41
commit
b81c85d8f3
@ -4494,7 +4494,7 @@ win_line(wp, lnum, startrow, endrow, nochange)
|
|||||||
tab_len = (int)wp->w_buffer->b_p_ts
|
tab_len = (int)wp->w_buffer->b_p_ts
|
||||||
- vcol % (int)wp->w_buffer->b_p_ts - 1;
|
- vcol % (int)wp->w_buffer->b_p_ts - 1;
|
||||||
#ifdef FEAT_LINEBREAK
|
#ifdef FEAT_LINEBREAK
|
||||||
if (!wp->w_p_lbr)
|
if (!wp->w_p_lbr || !wp->w_p_list)
|
||||||
#endif
|
#endif
|
||||||
/* tab amount depends on current column */
|
/* tab amount depends on current column */
|
||||||
n_extra = tab_len;
|
n_extra = tab_len;
|
||||||
|
@ -30,11 +30,22 @@ STARTTEST
|
|||||||
:redraw!
|
:redraw!
|
||||||
:let line=ScreenChar(winwidth(0))
|
:let line=ScreenChar(winwidth(0))
|
||||||
:call DoRecordScreen()
|
:call DoRecordScreen()
|
||||||
|
:"
|
||||||
:let g:test ="Test 2: set nolinebreak list"
|
:let g:test ="Test 2: set nolinebreak list"
|
||||||
:set list nolinebreak
|
:set list nolinebreak
|
||||||
:redraw!
|
:redraw!
|
||||||
:let line=ScreenChar(winwidth(0))
|
:let line=ScreenChar(winwidth(0))
|
||||||
:call DoRecordScreen()
|
:call DoRecordScreen()
|
||||||
|
:"
|
||||||
|
:let g:test ="Test 3: set linebreak nolist"
|
||||||
|
:$put =\"\t*mask = nil;\"
|
||||||
|
:$
|
||||||
|
:norm! zt
|
||||||
|
:set nolist linebreak
|
||||||
|
:redraw!
|
||||||
|
:let line=ScreenChar(winwidth(0))
|
||||||
|
:call DoRecordScreen()
|
||||||
|
:"
|
||||||
:%w! test.out
|
:%w! test.out
|
||||||
:qa!
|
:qa!
|
||||||
ENDTEST
|
ENDTEST
|
||||||
|
@ -12,3 +12,10 @@ Test 2: set nolinebreak list
|
|||||||
+pqrstuvwxyz␣1060ABC
|
+pqrstuvwxyz␣1060ABC
|
||||||
+DEFGHIJKLMNOPˑ¶
|
+DEFGHIJKLMNOPˑ¶
|
||||||
¶
|
¶
|
||||||
|
*mask = nil;
|
||||||
|
|
||||||
|
Test 3: set linebreak nolist
|
||||||
|
*mask = nil;
|
||||||
|
~
|
||||||
|
~
|
||||||
|
~
|
||||||
|
@ -734,6 +734,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 */
|
||||||
|
/**/
|
||||||
|
388,
|
||||||
/**/
|
/**/
|
||||||
387,
|
387,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user