mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fix(float): make laststatus=1 behave consistently with floating windows
This commit is contained in:
@@ -6507,7 +6507,7 @@ char_u *file_name_in_line(char_u *line, int col, int options, long count, char_u
|
||||
void last_status(bool morewin)
|
||||
{
|
||||
// Don't make a difference between horizontal or vertical split.
|
||||
last_status_rec(topframe, (p_ls == 2 || (p_ls == 1 && (morewin || !one_window(curwin)))),
|
||||
last_status_rec(topframe, (p_ls == 2 || (p_ls == 1 && (morewin || !one_nonfloat()))),
|
||||
global_stl_height() > 0);
|
||||
}
|
||||
|
||||
|
||||
@@ -5729,7 +5729,7 @@ describe('float window', function()
|
||||
[2:----------------------------------------]|
|
||||
[2:----------------------------------------]|
|
||||
[2:----------------------------------------]|
|
||||
{5:[No Name] [+] }|
|
||||
[2:----------------------------------------]|
|
||||
[3:----------------------------------------]|
|
||||
## grid 2
|
||||
x |
|
||||
@@ -5737,6 +5737,7 @@ describe('float window', function()
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
## grid 3
|
||||
:quit |
|
||||
## grid 4
|
||||
@@ -5752,7 +5753,7 @@ describe('float window', function()
|
||||
{0:~ }{1:^y }{0: }|
|
||||
{0:~ }{2:~ }{0: }|
|
||||
{0:~ }|
|
||||
{5:[No Name] [+] }|
|
||||
{0:~ }|
|
||||
:quit |
|
||||
]])
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user