forked from aniani/vim
patch 8.1.2158: terminal attributes missing in Terminal-normal mode
Problem: Terminal attributes missing in Terminal-normal mode. Solution: Use "syntax_attr".
This commit is contained in:
@@ -1517,7 +1517,7 @@ win_line(
|
|||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
#ifdef FEAT_SYN_HL
|
#ifdef FEAT_SYN_HL
|
||||||
if (has_syntax)
|
if (has_syntax || get_term_attr)
|
||||||
char_attr = syntax_attr;
|
char_attr = syntax_attr;
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
|
15
src/testdir/dumps/Test_terminal_dumpload.dump
Normal file
15
src/testdir/dumps/Test_terminal_dumpload.dump
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
>1+0&#ffffff0| @73
|
||||||
|
|2| |╔+0fd7ff255|═@11|╗| +0&#ffffff0@5|╔+0&#dadada255|═@11|╗+0a8a8a255| +0&#ffffff0@5|x+0fd7ff255@13| +0&#ffffff0@2|#+0fd7ff255|x@11|#| +0&#ffffff0@1
|
||||||
|
|3| |║+0fd7ff255|h+0#0000001#ffd7ff255|e|l@1|o| |b|o|r|d|e|r|║+0#0000000#5fd7ff255| +0&#ffffff0@5|║+0&#a8a8a8255|h+0#0000001#ffd7ff255|e|l@1|o| |b|o|r|d|e|r|║+0#0000000#8a8a8a255| +0&#ffffff0@5|x+0fd7ff255|h+0#0000001#ffd7ff255|e|l@1|o| |b|o|r|d|e|r|x+0#0000000#5fd7ff255| +0&#ffffff0@2|x+0fd7ff255|h+0#0000001#ffd7ff255|e|l@1|o| |b|o|r|d|e|r|x+0#0000000#5fd7ff255| +0&#ffffff0@1
|
||||||
|
|4| |╚+0fd7ff255|═@11|╝| +0&#ffffff0@5|║+0&#a8a8a8255|a+0#0000001#ffd7ff255|n|d| |m|o|r|e| @3|║+0#0000000#8a8a8a255| +0&#ffffff0@5|x+0fd7ff255|l+0#0000001#ffd7ff255|i|n|e|s| |o|n|l|y| @1|x+0#0000000#5fd7ff255| +0&#ffffff0@2|x+0fd7ff255|w+0#0000001#ffd7ff255|i|t|h| |c|o|r|n|e|r|s|x+0#0000000#5fd7ff255| +0&#ffffff0@1
|
||||||
|
|5| @20|╚+0�|═@11|╝| +0&#ffffff0@5|x+0fd7ff255@13| +0&#ffffff0@2|#+0fd7ff255|x@11|#| +0&#ffffff0@1
|
||||||
|
|6| |4+0fd7ff255|0@11|5| +0&#ffffff0@58
|
||||||
|
|7| |3+0fd7ff255|h+0#0000001#ffd7ff255|e|l@1|o| |b|o|r|d|e|r|1+0#0000000#5fd7ff255| +0&#ffffff0@5| +0fd7ff255@13| +0&#ffffff0@38
|
||||||
|
|8| |3+0fd7ff255|w+0#0000001#ffd7ff255|i|t|h| |n|u|m|b|e|r|s|1+0#0000000#5fd7ff255| +0&#ffffff0@5| +0fd7ff255|h+0#0000001#ffd7ff255|e|l@1|o| |b|o|r|d|e|r| +0#0000000#5fd7ff255| +0&#ffffff0@38
|
||||||
|
|9| |7+0fd7ff255|2@11|6| +0&#ffffff0@5| +0fd7ff255|j+0#0000001#ffd7ff255|u|s|t| |b|l|a|n|k|s| | +0#0000000#5fd7ff255| +0&#ffffff0@38
|
||||||
|
|1|0| @19| +0fd7ff255@13| +0&#ffffff0@38
|
||||||
|
|1@1| @72
|
||||||
|
|d+2#ffffff16#00e0003|u|m|p| |d|i|f@1| |d|u|m|p|s|/|T|e|s|t|_|p|o|p|u|p|w|i|n|_|2@1|.|d|u|m|p| |[|f|i|n|i|s|h|e|d|]| @8|1|,|1| @11|T|o|p
|
||||||
|
| +0#0000000#ffffff0@74
|
||||||
|
|[+1&&|N|o| |N|a|m|e|]| @47|0|,|0|-|1| @9|A|l@1
|
||||||
|
| +0&&@74
|
@@ -1140,6 +1140,20 @@ func Test_terminal_dumpload()
|
|||||||
quit
|
quit
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
func Test_terminal_dumpload_dump()
|
||||||
|
CheckRunVimInTerminal
|
||||||
|
|
||||||
|
let lines =<< trim END
|
||||||
|
call term_dumpload('dumps/Test_popupwin_22.dump', #{term_rows: 12})
|
||||||
|
END
|
||||||
|
call writefile(lines, 'XtermDumpload')
|
||||||
|
let buf = RunVimInTerminal('-S XtermDumpload', #{rows: 15})
|
||||||
|
call VerifyScreenDump(buf, 'Test_terminal_dumpload', {})
|
||||||
|
|
||||||
|
call StopVimInTerminal(buf)
|
||||||
|
call delete('XtermDumpload')
|
||||||
|
endfunc
|
||||||
|
|
||||||
func Test_terminal_dumpdiff()
|
func Test_terminal_dumpdiff()
|
||||||
call assert_equal(1, winnr('$'))
|
call assert_equal(1, winnr('$'))
|
||||||
eval 'dumps/Test_popup_command_01.dump'->term_dumpdiff('dumps/Test_popup_command_02.dump')
|
eval 'dumps/Test_popup_command_01.dump'->term_dumpdiff('dumps/Test_popup_command_02.dump')
|
||||||
|
@@ -753,6 +753,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 */
|
||||||
|
/**/
|
||||||
|
2158,
|
||||||
/**/
|
/**/
|
||||||
2157,
|
2157,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user