Skip to content

Commit

Permalink
fix(float): make laststatus=1 behave consistently with floating windows
Browse files Browse the repository at this point in the history
  • Loading branch information
zeertzjq committed Mar 23, 2022
1 parent 3fdb7b5 commit a9359dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/nvim/window.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
5 changes: 3 additions & 2 deletions test/functional/ui/float_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5729,14 +5729,15 @@ describe('float window', function()
[2:----------------------------------------]|
[2:----------------------------------------]|
[2:----------------------------------------]|
{5:[No Name] [+] }|
[2:----------------------------------------]|
[3:----------------------------------------]|
## grid 2
x |
{0:~ }|
{0:~ }|
{0:~ }|
{0:~ }|
{0:~ }|
## grid 3
:quit |
## grid 4
Expand All @@ -5752,7 +5753,7 @@ describe('float window', function()
{0:~ }{1:^y }{0: }|
{0:~ }{2:~ }{0: }|
{0:~ }|
{5:[No Name] [+] }|
{0:~ }|
:quit |
]])
end
Expand Down

0 comments on commit a9359dc

Please sign in to comment.