Skip to content

Conversation

@h-east
Copy link
Member

@h-east h-east commented Nov 30, 2025

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)

{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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@chrisbra
Copy link
Member

chrisbra commented Dec 2, 2025

okay, fair thanks

@chrisbra chrisbra closed this in a04ab5f Dec 2, 2025
@h-east
Copy link
Member Author

h-east commented Dec 3, 2025

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)

@h-east h-east deleted the add-status_height-to-getwininfo branch December 3, 2025 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants