refactor(ui)!: link VertSplit to Normal by default

Avoids using `gui=reverse` on `VertSplit` and makes window separators
look much nicer by default.
This commit is contained in:
Famiu Haque
2022-05-15 22:34:44 +06:00
parent 793496aecc
commit bbf58e6bbc
18 changed files with 1405 additions and 1401 deletions

View File

@@ -65,20 +65,20 @@ describe('global statusline', function()
it('works with splits', function()
command('vsplit | split | vsplit | vsplit | wincmd l | split | 2wincmd l | split')
screen:expect{grid=[[
{1:│} {1:│} {1:│}^ |
{2:~ }{1:│}{2:~ }{1:│}{2:~}{1:│}{2:~ }|
{2:~ }{1:│}{2:~ }{1:│}{2:~}{1:│}{2:~ }|
{2:~ }{1:│}{2:~ }{1:│}{2:~}{1:│}{2:~ }|
{2:~ }{1:├────────────────┤}{2:~}{1:│}{2:~ }|
{2:~ }{1:│} {1:│}{2:~}{1:│}{2:~ }|
{2:~ }{1:│}{2:~ }{1:│}{2:~}{1:│}{2:~ }|
{2:~ }{1:│}{2:~ }{1:│}{2:~}{1:├────────────────────}|
{2:~ }{1:│}{2:~ }{1:│}{2:~}{1:│} |
{1:────────────────────┴────────────────┴─┤}{2:~ }|
{1:│}{2:~ }|
{2:~ }{1:│}{2:~ }|
{2:~ }{1:│}{2:~ }|
{2:~ }{1:│}{2:~ }|
│ │^ |
{2:~ }{2:~ }│{2:~}│{2:~ }|
{2:~ }{2:~ }│{2:~}│{2:~ }|
{2:~ }{2:~ }│{2:~}│{2:~ }|
{2:~ }├────────────────┤{2:~}{2:~ }|
{2:~ } │{2:~}│{2:~ }|
{2:~ }{2:~ }│{2:~}│{2:~ }|
{2:~ }{2:~ }{2:~}├────────────────────|
{2:~ }{2:~ }│{2:~}│ |
────────────────────┴────────────────┴─┤{2:~ }|
{2:~ }|
{2:~ }{2:~ }|
{2:~ }{2:~ }|
{2:~ }{2:~ }|
{3:[No Name] 0,0-1 All}|
|
]], attr_ids={
@@ -137,20 +137,20 @@ describe('global statusline', function()
command('vsplit | split | vsplit | vsplit | wincmd l | split | 2wincmd l | split')
command('set laststatus=2')
screen:expect{grid=[[
{1:│} {1:│} {1:│}^ |
{2:~ }{1:│}{2:~ }{1:│}{2:~}{1:│}{2:~ }|
{2:~ }{1:│}{2:~ }{1:│}{2:~}{1:│}{2:~ }|
{2:~ }{1:│}{2:~ }{1:│}{2:~}{1:│}{2:~ }|
{2:~ }{1:< Name] 0,0-1 │}{2:~}{1:│}{2:~ }|
{2:~ }{1:│} {1:│}{2:~}{1:│}{2:~ }|
{2:~ }{1:│}{2:~ }{1:│}{2:~}{1:│}{2:~ }|
{2:~ }{1:│}{2:~ }{1:│}{2:~}{1:│}{3:<No Name] 0,0-1 All}|
{2:~ }{1:│}{2:~ }{1:│}{2:~}{1:│} |
{1:<No Name] 0,0-1 All < Name] 0,0-1 <│}{2:~ }|
{1:│}{2:~ }|
{2:~ }{1:│}{2:~ }|
{2:~ }{1:│}{2:~ }|
{2:~ }{1:│}{2:~ }|
│ │^ |
{2:~ }{2:~ }│{2:~}│{2:~ }|
{2:~ }{2:~ }│{2:~}│{2:~ }|
{2:~ }{2:~ }│{2:~}│{2:~ }|
{2:~ }{1:< Name] 0,0-1 }│{2:~}{2:~ }|
{2:~ } │{2:~}│{2:~ }|
{2:~ }{2:~ }│{2:~}│{2:~ }|
{2:~ }{2:~ }│{2:~}│{3:<No Name] 0,0-1 All}|
{2:~ }{2:~ }│{2:~}│ |
{1:<No Name] 0,0-1 All < Name] 0,0-1 <}│{2:~ }|
{2:~ }|
{2:~ }{2:~ }|
{2:~ }{2:~ }|
{2:~ }{2:~ }|
{1:[No Name] 0,0-1 All <No Name] 0,0-1 All}|
|
]], attr_ids={
@@ -161,20 +161,20 @@ describe('global statusline', function()
command('set laststatus=3')
screen:expect{grid=[[
{1:│} {1:│} {1:│}^ |
{2:~ }{1:│}{2:~ }{1:│}{2:~}{1:│}{2:~ }|
{2:~ }{1:│}{2:~ }{1:│}{2:~}{1:│}{2:~ }|
{2:~ }{1:│}{2:~ }{1:│}{2:~}{1:│}{2:~ }|
{2:~ }{1:├────────────────┤}{2:~}{1:│}{2:~ }|
{2:~ }{1:│} {1:│}{2:~}{1:│}{2:~ }|
{2:~ }{1:│}{2:~ }{1:│}{2:~}{1:│}{2:~ }|
{2:~ }{1:│}{2:~ }{1:│}{2:~}{1:├────────────────────}|
{2:~ }{1:│}{2:~ }{1:│}{2:~}{1:│} |
{1:────────────────────┴────────────────┴─┤}{2:~ }|
{1:│}{2:~ }|
{2:~ }{1:│}{2:~ }|
{2:~ }{1:│}{2:~ }|
{2:~ }{1:│}{2:~ }|
│ │^ |
{2:~ }{2:~ }│{2:~}│{2:~ }|
{2:~ }{2:~ }│{2:~}│{2:~ }|
{2:~ }{2:~ }│{2:~}│{2:~ }|
{2:~ }├────────────────┤{2:~}{2:~ }|
{2:~ } │{2:~}│{2:~ }|
{2:~ }{2:~ }│{2:~}│{2:~ }|
{2:~ }{2:~ }{2:~}├────────────────────|
{2:~ }{2:~ }│{2:~}│ |
────────────────────┴────────────────┴─┤{2:~ }|
{2:~ }|
{2:~ }{2:~ }|
{2:~ }{2:~ }|
{2:~ }{2:~ }|
{3:[No Name] 0,0-1 All}|
|
]], attr_ids={
@@ -185,21 +185,21 @@ describe('global statusline', function()
command('set laststatus=0')
screen:expect{grid=[[
{1:│} {1:│} {1:│}^ |
{2:~ }{1:│}{2:~ }{1:│}{2:~}{1:│}{2:~ }|
{2:~ }{1:│}{2:~ }{1:│}{2:~}{1:│}{2:~ }|
{2:~ }{1:│}{2:~ }{1:│}{2:~}{1:│}{2:~ }|
{2:~ }{1:< Name] 0,0-1 │}{2:~}{1:│}{2:~ }|
{2:~ }{1:│} {1:│}{2:~}{1:│}{2:~ }|
{2:~ }{1:│}{2:~ }{1:│}{2:~}{1:│}{2:~ }|
{2:~ }{1:│}{2:~ }{1:│}{2:~}{1:│}{3:<No Name] 0,0-1 All}|
{2:~ }{1:│}{2:~ }{1:│}{2:~}{1:│} |
{1:<No Name] 0,0-1 All < Name] 0,0-1 <│}{2:~ }|
{1:│}{2:~ }|
{2:~ }{1:│}{2:~ }|
{2:~ }{1:│}{2:~ }|
{2:~ }{1:│}{2:~ }|
{2:~ }{1:│}{2:~ }|
│ │^ |
{2:~ }{2:~ }│{2:~}│{2:~ }|
{2:~ }{2:~ }│{2:~}│{2:~ }|
{2:~ }{2:~ }│{2:~}│{2:~ }|
{2:~ }{1:< Name] 0,0-1 }│{2:~}{2:~ }|
{2:~ } │{2:~}│{2:~ }|
{2:~ }{2:~ }│{2:~}│{2:~ }|
{2:~ }{2:~ }│{2:~}│{3:<No Name] 0,0-1 All}|
{2:~ }{2:~ }│{2:~}│ |
{1:<No Name] 0,0-1 All < Name] 0,0-1 <}│{2:~ }|
{2:~ }|
{2:~ }{2:~ }|
{2:~ }{2:~ }|
{2:~ }{2:~ }|
{2:~ }{2:~ }|
0,0-1 All |
]], attr_ids={
[1] = {reverse = true};
@@ -209,20 +209,20 @@ describe('global statusline', function()
command('set laststatus=3')
screen:expect{grid=[[
{1:│} {1:│} {1:│}^ |
{2:~ }{1:│}{2:~ }{1:│}{2:~}{1:│}{2:~ }|
{2:~ }{1:│}{2:~ }{1:│}{2:~}{1:│}{2:~ }|
{2:~ }{1:│}{2:~ }{1:│}{2:~}{1:│}{2:~ }|
{2:~ }{1:├────────────────┤}{2:~}{1:│}{2:~ }|
{2:~ }{1:│} {1:│}{2:~}{1:│}{2:~ }|
{2:~ }{1:│}{2:~ }{1:│}{2:~}{1:│}{2:~ }|
{2:~ }{1:│}{2:~ }{1:│}{2:~}{1:├────────────────────}|
{2:~ }{1:│}{2:~ }{1:│}{2:~}{1:│} |
{1:────────────────────┴────────────────┴─┤}{2:~ }|
{1:│}{2:~ }|
{2:~ }{1:│}{2:~ }|
{2:~ }{1:│}{2:~ }|
{2:~ }{1:│}{2:~ }|
│ │^ |
{2:~ }{2:~ }│{2:~}│{2:~ }|
{2:~ }{2:~ }│{2:~}│{2:~ }|
{2:~ }{2:~ }│{2:~}│{2:~ }|
{2:~ }├────────────────┤{2:~}{2:~ }|
{2:~ } │{2:~}│{2:~ }|
{2:~ }{2:~ }│{2:~}│{2:~ }|
{2:~ }{2:~ }{2:~}├────────────────────|
{2:~ }{2:~ }│{2:~}│ |
────────────────────┴────────────────┴─┤{2:~ }|
{2:~ }|
{2:~ }{2:~ }|
{2:~ }{2:~ }|
{2:~ }{2:~ }|
{3:[No Name] 0,0-1 All}|
|
]], attr_ids={