mirror of
https://github.com/wez/wezterm.git
synced 2024-09-20 11:17:15 +03:00
fix overly truncated tab titles
refs: https://github.com/wez/wezterm/issues/2379
This commit is contained in:
parent
6542566e8f
commit
04bc838b63
@ -22,6 +22,7 @@ As features stabilize some brief notes about them will accumulate here.
|
|||||||
#### Fixed
|
#### Fixed
|
||||||
|
|
||||||
* macOS: crash on startup if `$SHELL` points to something that isn't executable. [#2378](https://github.com/wez/wezterm/issues/2378)
|
* 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
|
### 20220807-113146-c2fee766
|
||||||
|
|
||||||
|
@ -861,14 +861,14 @@ impl super::TermWindow {
|
|||||||
- (glyph.y_offset + glyph.bearing_y).get() as f32
|
- (glyph.y_offset + glyph.bearing_y).get() as f32
|
||||||
+ element.baseline;
|
+ 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
|
if pos_x + glyph.x_advance.get() as f32
|
||||||
> element.content_rect.max_x()
|
> element.content_rect.max_x()
|
||||||
{
|
{
|
||||||
break;
|
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()?;
|
let mut quad = layers[1].allocate()?;
|
||||||
quad.set_position(
|
quad.set_position(
|
||||||
|
Loading…
Reference in New Issue
Block a user