mirror of
https://github.com/neovim/neovim.git
synced 2025-09-23 19:48:32 +00:00
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:
@@ -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={
|
||||
|
Reference in New Issue
Block a user