mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch: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
91aabcb75b
commit
2e1c745869
@ -3461,7 +3461,7 @@ win_line (
|
||||
/* tab amount depends on current column */
|
||||
tab_len = (int)wp->w_buffer->b_p_ts
|
||||
- vcol % (int)wp->w_buffer->b_p_ts - 1;
|
||||
if (!wp->w_p_lbr) {
|
||||
if (!wp->w_p_lbr || !wp->w_p_list) {
|
||||
n_extra = tab_len;
|
||||
} else {
|
||||
char_u *p;
|
||||
|
@ -30,11 +30,22 @@ STARTTEST
|
||||
:redraw!
|
||||
:let line=ScreenChar(winwidth(0))
|
||||
:call DoRecordScreen()
|
||||
:"
|
||||
:let g:test ="Test 2: set nolinebreak list"
|
||||
:set list nolinebreak
|
||||
:redraw!
|
||||
:let line=ScreenChar(winwidth(0))
|
||||
: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
|
||||
:qa!
|
||||
ENDTEST
|
||||
|
@ -12,3 +12,10 @@ Test 2: set nolinebreak list
|
||||
+pqrstuvwxyz␣1060ABC
|
||||
+DEFGHIJKLMNOPˑ¶
|
||||
¶
|
||||
*mask = nil;
|
||||
|
||||
Test 3: set linebreak nolist
|
||||
*mask = nil;
|
||||
~
|
||||
~
|
||||
~
|
||||
|
@ -207,7 +207,7 @@ static int included_patches[] = {
|
||||
//391,
|
||||
//390,
|
||||
//389,
|
||||
//388,
|
||||
388,
|
||||
//387,
|
||||
//386,
|
||||
//385,
|
||||
|
Loading…
Reference in New Issue
Block a user