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

4 views
Skip to first unread message

h_east

unread,
Aug 17, 2026, 6:41:53 PM (16 hours ago) Aug 17
to vim/vim, Subscribed
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

  • a6d8618 status line height is wrong after exchanging or rotating windows

File Changes

(2 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/21079@github.com>

Reply all
Reply to author
Forward
0 new messages