[vim/vim] Add `status_height` to the dict items returned by `getwininfo()` (PR #18841)

19 views
Skip to first unread message

h_east

unread,
Nov 30, 2025, 8:06:49 AM (3 days ago) Nov 30
to vim/vim, Subscribed

I think it's strange that this hasn't existed until now.

(In addition, the order of items in the getwininfo() documentation has been changed to alphabetical order)


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

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

Commit Summary

  • ca41148 Add `status_height` to the dict items returned by `getwininfo()`

File Changes

(3 files)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18841@github.com>

Christian Brabandt

unread,
Nov 30, 2025, 9:34:41 AM (3 days ago) Nov 30
to vim/vim, Subscribed

@chrisbra commented on this pull request.


In runtime/doc/builtin.txt:

> @@ -5343,9 +5343,13 @@ getwininfo([{winid}])					*getwininfo()*
 					{only with the +quickfix feature}
 			quickfix	1 if quickfix or location list window
 					{only with the +quickfix feature}
+			status_height	status lines height (0 or 1)

But this is not really the height, but rather whether a statusline is displayed, so
shouldn't that be rather:

⬇️ Suggested change
-			status_height	status lines height (0 or 1)
+			statusline	window has a status line displayed (0 or 1)


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18841/review/3521382703@github.com>

h_east

unread,
Nov 30, 2025, 3:12:55 PM (3 days ago) Nov 30
to vim/vim, Subscribed

@h-east commented on this pull request.


In runtime/doc/builtin.txt:

> @@ -5343,9 +5343,13 @@ getwininfo([{winid}])					*getwininfo()*
 					{only with the +quickfix feature}
 			quickfix	1 if quickfix or location list window
 					{only with the +quickfix feature}
+			status_height	status lines height (0 or 1)

At the moment it is, but I'm working on a multi-line-statusline patch.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18841/review/3522244335@github.com>

Christian Brabandt

unread,
Dec 1, 2025, 2:24:23 PM (2 days ago) Dec 1
to vim/vim, Subscribed

@chrisbra commented on this pull request.


In runtime/doc/builtin.txt:

> @@ -5343,9 +5343,13 @@ getwininfo([{winid}])					*getwininfo()*
 					{only with the +quickfix feature}
 			quickfix	1 if quickfix or location list window
 					{only with the +quickfix feature}
+			status_height	status lines height (0 or 1)

okay, but then we would have an entry statusline which indicates whether the window has a statusline and stl_height which gives the line height, no?


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18841/review/3526614434@github.com>

h_east

unread,
Dec 1, 2025, 9:51:16 PM (2 days ago) Dec 1
to vim/vim, Subscribed

@h-east commented on this pull request.


In runtime/doc/builtin.txt:

> @@ -5343,9 +5343,13 @@ getwininfo([{winid}])					*getwininfo()*
 					{only with the +quickfix feature}
 			quickfix	1 if quickfix or location list window
 					{only with the +quickfix feature}
+			status_height	status lines height (0 or 1)

I think a single entry is sufficient. A value of 0 means no statusline. Any other value specifies the statusline’s height. Negative values are not allowed.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18841/review/3527927101@github.com>

Christian Brabandt

unread,
Dec 2, 2025, 2:49:45 PM (16 hours ago) Dec 2
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#18841)

okay, fair thanks


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18841/c3603704026@github.com>

Christian Brabandt

unread,
Dec 2, 2025, 3:00:36 PM (15 hours ago) Dec 2
to vim/vim, Subscribed

Closed #18841 via a04ab5f.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18841/issue_event/21315623536@github.com>

h_east

unread,
Dec 2, 2025, 7:07:35 PM (11 hours ago) Dec 2
to vim/vim, Subscribed
h-east left a comment (vim/vim#18841)

Thanks for the merging. There may be room to discuss the item name status_height:

  • stl_height
  • statusline

Does anyone have any thoughts?
(Please take into account that in the near future, integers other than 0 and 1 may be specified)


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18841/c3604459049@github.com>

Reply all
Reply to author
Forward
0 new messages