[vim/vim] status line height is wrong after exchanging or rotating windows (PR #21079)

h_east (Vim Github Repository) <[email protected]>
Newsgroups gmane.editors.vim.devel
Message-ID <vim/vim/pull/[email protected]>
```
Problem:  Exchanging windows with CTRL-W x or rotating them with CTRL-W r
          leaves a window with the status line height of the other one, so
          with 'statuslineopt' the windows in a row no longer line up.
Solution: Keep the total height of each window when the status line height
          is exchanged, and compute the height needed for the status line of
          each window afterwards.
```

---

To reproduce:

```
vim --clean +vsp +"setl stlo=fixedheight,maxheight:3"
```

Then CTRL-W x or CTRL-W r.

You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/21079

-- Commit Summary --

  * status line height is wrong after exchanging or rotating windows

-- File Changes --

    M src/testdir/test_statusline.vim (125)
    M src/window.c (20)

-- Patch Links --

https://github.com/vim/vim/pull/21079.patch
https://github.com/vim/vim/pull/21079.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/vim/vim/pull/21079
You are receiving this because you are subscribed to this thread.

Message ID: <vim/vim/pull/[email protected]>

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/vim_dev/vim/vim/pull/21079%40github.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.