wezterm icon indicating copy to clipboard operation
wezterm copied to clipboard

[BUG] Incorrect dimensions calculation in update_status?

Open chtenb opened this issue 1 year ago • 0 comments

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):

  • OS: [e.g. Windows]
  • Versionwezterm 20240520-135708-b8f94c47

chtenb avatar Aug 20 '24 19:08 chtenb