'fillchars': fix defaults logic; handle ambiwidth=double #7986

Update tests.
This commit is contained in:
Matthieu Coudron
2018-02-09 08:44:24 +09:00
committed by Justin M. Keyes
parent 0c930c2969
commit 384a39479a
13 changed files with 305 additions and 261 deletions

View File

@@ -638,12 +638,12 @@ describe('ui/mouse/input', function()
screen:try_resize(53, 14)
feed_command('sp', 'vsp')
screen:expect([[
lines {4:|}lines |
to {4:|}to |
test {4:|}test |
mouse scrolling {4:|}mouse scrolling |
^ {4:|} |
{0:~ }{4:|}{0:~ }|
lines {4:}lines |
to {4:}to |
test {4:}test |
mouse scrolling {4:}mouse scrolling |
^ {4:} |
{0:~ }{4:}{0:~ }|
{5:[No Name] [+] }{4:[No Name] [+] }|
to |
test |
@@ -655,12 +655,12 @@ describe('ui/mouse/input', function()
]])
feed('<ScrollWheelDown><0,0>')
screen:expect([[
mouse scrolling {4:|}lines |
^ {4:|}to |
{0:~ }{4:|}test |
{0:~ }{4:|}mouse scrolling |
{0:~ }{4:|} |
{0:~ }{4:|}{0:~ }|
mouse scrolling {4:}lines |
^ {4:}to |
{0:~ }{4:}test |
{0:~ }{4:}mouse scrolling |
{0:~ }{4:} |
{0:~ }{4:}{0:~ }|
{5:[No Name] [+] }{4:[No Name] [+] }|
to |
test |
@@ -672,12 +672,12 @@ describe('ui/mouse/input', function()
]])
feed('<ScrollWheelUp><27,0>')
screen:expect([[
mouse scrolling {4:|}text |
^ {4:|}with |
{0:~ }{4:|}many |
{0:~ }{4:|}lines |
{0:~ }{4:|}to |
{0:~ }{4:|}test |
mouse scrolling {4:}text |
^ {4:}with |
{0:~ }{4:}many |
{0:~ }{4:}lines |
{0:~ }{4:}to |
{0:~ }{4:}test |
{5:[No Name] [+] }{4:[No Name] [+] }|
to |
test |
@@ -689,12 +689,12 @@ describe('ui/mouse/input', function()
]])
feed('<ScrollWheelUp><27,7><ScrollWheelUp>')
screen:expect([[
mouse scrolling {4:|}text |
^ {4:|}with |
{0:~ }{4:|}many |
{0:~ }{4:|}lines |
{0:~ }{4:|}to |
{0:~ }{4:|}test |
mouse scrolling {4:}text |
^ {4:}with |
{0:~ }{4:}many |
{0:~ }{4:}lines |
{0:~ }{4:}to |
{0:~ }{4:}test |
{5:[No Name] [+] }{4:[No Name] [+] }|
Inserting |
text |