diff --git a/docs/changelog.md b/docs/changelog.md index b43938c19..ba4770cc0 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -22,6 +22,7 @@ As features stabilize some brief notes about them will accumulate here. #### Fixed * macOS: crash on startup if `$SHELL` points to something that isn't executable. [#2378](https://github.com/wez/wezterm/issues/2378) +* tab titles truncated too short [#2379](https://github.com/wez/wezterm/issues/2379) ### 20220807-113146-c2fee766 diff --git a/wezterm-gui/src/termwindow/box_model.rs b/wezterm-gui/src/termwindow/box_model.rs index 5f69dbe24..9ddbf328f 100644 --- a/wezterm-gui/src/termwindow/box_model.rs +++ b/wezterm-gui/src/termwindow/box_model.rs @@ -861,14 +861,14 @@ impl super::TermWindow { - (glyph.y_offset + glyph.bearing_y).get() as f32 + element.baseline; - let pos_x = pos_x + (glyph.x_offset + glyph.bearing_x).get() as f32; - let width = texture.coords.size.width as f32 * glyph.scale as f32; - let height = texture.coords.size.height as f32 * glyph.scale as f32; if pos_x + glyph.x_advance.get() as f32 > element.content_rect.max_x() { break; } + let pos_x = pos_x + (glyph.x_offset + glyph.bearing_x).get() as f32; + let width = texture.coords.size.width as f32 * glyph.scale as f32; + let height = texture.coords.size.height as f32 * glyph.scale as f32; let mut quad = layers[1].allocate()?; quad.set_position(