'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

@@ -189,12 +189,12 @@ describe('Screen', function()
command('vsp')
command('vsp')
screen:expect([[
^ {3:|} {3:|} |
{0:~ }{3:|}{0:~ }{3:|}{0:~ }|
{0:~ }{3:|}{0:~ }{3:|}{0:~ }|
{0:~ }{3:|}{0:~ }{3:|}{0:~ }|
{0:~ }{3:|}{0:~ }{3:|}{0:~ }|
{0:~ }{3:|}{0:~ }{3:|}{0:~ }|
^ {3:} {3:} |
{0:~ }{3:}{0:~ }{3:}{0:~ }|
{0:~ }{3:}{0:~ }{3:}{0:~ }|
{0:~ }{3:}{0:~ }{3:}{0:~ }|
{0:~ }{3:}{0:~ }{3:}{0:~ }|
{0:~ }{3:}{0:~ }{3:}{0:~ }|
{1:[No Name] }{3:[No Name] [No Name] }|
|
{0:~ }|
@@ -206,12 +206,12 @@ describe('Screen', function()
]])
insert('hello')
screen:expect([[
hell^o {3:|}hello {3:|}hello |
{0:~ }{3:|}{0:~ }{3:|}{0:~ }|
{0:~ }{3:|}{0:~ }{3:|}{0:~ }|
{0:~ }{3:|}{0:~ }{3:|}{0:~ }|
{0:~ }{3:|}{0:~ }{3:|}{0:~ }|
{0:~ }{3:|}{0:~ }{3:|}{0:~ }|
hell^o {3:}hello {3:}hello |
{0:~ }{3:}{0:~ }{3:}{0:~ }|
{0:~ }{3:}{0:~ }{3:}{0:~ }|
{0:~ }{3:}{0:~ }{3:}{0:~ }|
{0:~ }{3:}{0:~ }{3:}{0:~ }|
{0:~ }{3:}{0:~ }{3:}{0:~ }|
{1:[No Name] [+] }{3:[No Name] [+] [No Name] [+] }|
hello |
{0:~ }|
@@ -232,12 +232,12 @@ describe('Screen', function()
command('vsp')
insert('hello')
screen:expect([[
hell^o {3:|}hello {3:|}hello |
{0:~ }{3:|}{0:~ }{3:|}{0:~ }|
{0:~ }{3:|}{0:~ }{3:|}{0:~ }|
{0:~ }{3:|}{0:~ }{3:|}{0:~ }|
{0:~ }{3:|}{0:~ }{3:|}{0:~ }|
{0:~ }{3:|}{0:~ }{3:|}{0:~ }|
hell^o {3:}hello {3:}hello |
{0:~ }{3:}{0:~ }{3:}{0:~ }|
{0:~ }{3:}{0:~ }{3:}{0:~ }|
{0:~ }{3:}{0:~ }{3:}{0:~ }|
{0:~ }{3:}{0:~ }{3:}{0:~ }|
{0:~ }{3:}{0:~ }{3:}{0:~ }|
{1:[No Name] [+] }{3:[No Name] [+] [No Name] [+] }|
hello |
{0:~ }|
@@ -269,12 +269,12 @@ describe('Screen', function()
command('tabprevious')
screen:expect([[
{2: }{6:4}{2:+ [No Name] }{4: + [No Name] }{3: }{4:X}|
hell^o {3:|}hello {3:|}hello |
{0:~ }{3:|}{0:~ }{3:|}{0:~ }|
{0:~ }{3:|}{0:~ }{3:|}{0:~ }|
{0:~ }{3:|}{0:~ }{3:|}{0:~ }|
{0:~ }{3:|}{0:~ }{3:|}{0:~ }|
{0:~ }{3:|}{0:~ }{3:|}{0:~ }|
hell^o {3:}hello {3:}hello |
{0:~ }{3:}{0:~ }{3:}{0:~ }|
{0:~ }{3:}{0:~ }{3:}{0:~ }|
{0:~ }{3:}{0:~ }{3:}{0:~ }|
{0:~ }{3:}{0:~ }{3:}{0:~ }|
{0:~ }{3:}{0:~ }{3:}{0:~ }|
{1:[No Name] [+] }{3:[No Name] [+] [No Name] [+] }|
hello |
{0:~ }|
@@ -398,12 +398,12 @@ describe('Screen', function()
command('vsp')
command('vsp')
screen:expect([[
and {3:|}and {3:|}and |
clearing {3:|}clearing {3:|}clearing |
in {3:|}in {3:|}in |
split {3:|}split {3:|}split |
windows {3:|}windows {3:|}windows |
^ {3:|} {3:|} |
and {3:}and {3:}and |
clearing {3:}clearing {3:}clearing |
in {3:}in {3:}in |
split {3:}split {3:}split |
windows {3:}windows {3:}windows |
^ {3:} {3:} |
{1:[No Name] [+] }{3:[No Name] [+] [No Name] [+] }|
clearing |
in |
@@ -418,12 +418,12 @@ describe('Screen', function()
it('only affects the current scroll region', function()
feed('6k')
screen:expect([[
^scrolling {3:|}and {3:|}and |
and {3:|}clearing {3:|}clearing |
clearing {3:|}in {3:|}in |
in {3:|}split {3:|}split |
split {3:|}windows {3:|}windows |
windows {3:|} {3:|} |
^scrolling {3:}and {3:}and |
and {3:}clearing {3:}clearing |
clearing {3:}in {3:}in |
in {3:}split {3:}split |
split {3:}windows {3:}windows |
windows {3:} {3:} |
{1:[No Name] [+] }{3:[No Name] [+] [No Name] [+] }|
clearing |
in |
@@ -435,12 +435,12 @@ describe('Screen', function()
]])
feed('<c-w>l')
screen:expect([[
scrolling {3:|}and {3:|}and |
and {3:|}clearing {3:|}clearing |
clearing {3:|}in {3:|}in |
in {3:|}split {3:|}split |
split {3:|}windows {3:|}windows |
windows {3:|}^ {3:|} |
scrolling {3:}and {3:}and |
and {3:}clearing {3:}clearing |
clearing {3:}in {3:}in |
in {3:}split {3:}split |
split {3:}windows {3:}windows |
windows {3:}^ {3:} |
{3:[No Name] [+] }{1:[No Name] [+] }{3:<Name] [+] }|
clearing |
in |
@@ -452,12 +452,12 @@ describe('Screen', function()
]])
feed('gg')
screen:expect([[
scrolling {3:|}^Inserting {3:|}and |
and {3:|}text {3:|}clearing |
clearing {3:|}with {3:|}in |
in {3:|}many {3:|}split |
split {3:|}lines {3:|}windows |
windows {3:|}to {3:|} |
scrolling {3:}^Inserting {3:}and |
and {3:}text {3:}clearing |
clearing {3:}with {3:}in |
in {3:}many {3:}split |
split {3:}lines {3:}windows |
windows {3:}to {3:} |
{3:[No Name] [+] }{1:[No Name] [+] }{3:<Name] [+] }|
clearing |
in |
@@ -469,12 +469,12 @@ describe('Screen', function()
]])
feed('7j')
screen:expect([[
scrolling {3:|}with {3:|}and |
and {3:|}many {3:|}clearing |
clearing {3:|}lines {3:|}in |
in {3:|}to {3:|}split |
split {3:|}test {3:|}windows |
windows {3:|}^scrolling {3:|} |
scrolling {3:}with {3:}and |
and {3:}many {3:}clearing |
clearing {3:}lines {3:}in |
in {3:}to {3:}split |
split {3:}test {3:}windows |
windows {3:}^scrolling {3:} |
{3:[No Name] [+] }{1:[No Name] [+] }{3:<Name] [+] }|
clearing |
in |
@@ -486,12 +486,12 @@ describe('Screen', function()
]])
feed('2j')
screen:expect([[
scrolling {3:|}lines {3:|}and |
and {3:|}to {3:|}clearing |
clearing {3:|}test {3:|}in |
in {3:|}scrolling {3:|}split |
split {3:|}and {3:|}windows |
windows {3:|}^clearing {3:|} |
scrolling {3:}lines {3:}and |
and {3:}to {3:}clearing |
clearing {3:}test {3:}in |
in {3:}scrolling {3:}split |
split {3:}and {3:}windows |
windows {3:}^clearing {3:} |
{3:[No Name] [+] }{1:[No Name] [+] }{3:<Name] [+] }|
clearing |
in |
@@ -503,12 +503,12 @@ describe('Screen', function()
]])
feed('5k')
screen:expect([[
scrolling {3:|}^lines {3:|}and |
and {3:|}to {3:|}clearing |
clearing {3:|}test {3:|}in |
in {3:|}scrolling {3:|}split |
split {3:|}and {3:|}windows |
windows {3:|}clearing {3:|} |
scrolling {3:}^lines {3:}and |
and {3:}to {3:}clearing |
clearing {3:}test {3:}in |
in {3:}scrolling {3:}split |
split {3:}and {3:}windows |
windows {3:}clearing {3:} |
{3:[No Name] [+] }{1:[No Name] [+] }{3:<Name] [+] }|
clearing |
in |
@@ -520,12 +520,12 @@ describe('Screen', function()
]])
feed('k')
screen:expect([[
scrolling {3:|}^many {3:|}and |
and {3:|}lines {3:|}clearing |
clearing {3:|}to {3:|}in |
in {3:|}test {3:|}split |
split {3:|}scrolling {3:|}windows |
windows {3:|}and {3:|} |
scrolling {3:}^many {3:}and |
and {3:}lines {3:}clearing |
clearing {3:}to {3:}in |
in {3:}test {3:}split |
split {3:}scrolling {3:}windows |
windows {3:}and {3:} |
{3:[No Name] [+] }{1:[No Name] [+] }{3:<Name] [+] }|
clearing |
in |