1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-23 06:54:45 +03:00

fix overly truncated tab titles

refs: https://github.com/wez/wezterm/issues/2379
This commit is contained in:
Wez Furlong 2022-08-09 20:46:41 -07:00
parent 6542566e8f
commit 04bc838b63
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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(