sravioli / wezterm

My Wezterm configuration
61 stars 9 forks source link

[BUG] Incorrect dimensions calculation in update_status? #13

Open chtenb opened 2 months ago

chtenb commented 2 months ago

Describe the bug In update-status.lua:

local usable_width = pane:get_dimensions().cols - tab_bar_width - 2

Shouldn't this use the cols of the entire window instead? The status bar is not limited to a pane, and if you have a vertical split, the pane cols are half of the actual space, which makes the right status part disappear incorrectly in some cases.

To Reproduce Steps to reproduce the behavior:

  1. Have some tabs open
  2. Open a vertical split in one of the tabs
  3. watch the right status disappear

Expected behavior See right status as long as there is space

Desktop (please complete the following information):

sravioli commented 2 weeks ago

Yes that would be better. Wezterm exposes window dimensions in pixels though. I do not know how to convert them into cols (the unit used)