ui: Fix win_hide distination grid

When create tab, win_hide sent to new tab and new tab's previous tab.
So, if created tab that not next tab (eg. $tabnew cmd),
send win_hide to not current tab, and fixed this.
This commit is contained in:
shirasaka
2020-12-04 12:03:04 +09:00
committed by Shirasaka
parent c348e816fc
commit 9601e7c5d5
2 changed files with 74 additions and 2 deletions

View File

@@ -1562,6 +1562,77 @@ describe('ext_multigrid', function()
{1:~ }|
]]}
command('tabnext')
command('$tabnew')
screen:expect{grid=[[
## grid 1
{16: }{17:2}{16: [No Name] }{17:2}{16: [No Name] }{7: [No Name] }{12: }{16:X}|
[7:-----------------------------------------------------]|
[7:-----------------------------------------------------]|
[7:-----------------------------------------------------]|
[7:-----------------------------------------------------]|
[7:-----------------------------------------------------]|
[7:-----------------------------------------------------]|
[7:-----------------------------------------------------]|
[7:-----------------------------------------------------]|
[7:-----------------------------------------------------]|
[7:-----------------------------------------------------]|
[7:-----------------------------------------------------]|
{11:[No Name] }|
[3:-----------------------------------------------------]|
## grid 2 (hidden)
|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
## grid 3
|
## grid 4 (hidden)
|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
## grid 5 (hidden)
|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
## grid 6 (hidden)
|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
## grid 7
^ |
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
]]}
command('tabclose')
command('tabclose')
screen:expect{grid=[[
## grid 1