aboutsummaryrefslogtreecommitdiff
path: root/vendor/libghostty-vt/src/font/sprite/draw
diff options
context:
space:
mode:
authorCan Celik <ogulcancelik@gmail.com>2026-09-10 21:51:57 +0300
committerGitHub <noreply@github.com>2026-09-10 21:51:57 +0300
commit425c86179791cd32e2d4ce0ae7f269940b4b0663 (patch)
treee52c4383a6d69216cbe2a32638bf90841d7e2189 /vendor/libghostty-vt/src/font/sprite/draw
parent90e947a6e26e02f10ec7f1694c4eb5b78a86406b (diff)
chore: upgrade libghostty and preserve terminal behavior (#3906)
Diffstat (limited to 'vendor/libghostty-vt/src/font/sprite/draw')
-rw-r--r--vendor/libghostty-vt/src/font/sprite/draw/powerline.zig10
1 files changed, 8 insertions, 2 deletions
diff --git a/vendor/libghostty-vt/src/font/sprite/draw/powerline.zig b/vendor/libghostty-vt/src/font/sprite/draw/powerline.zig
index 8658d855..35445cdd 100644
--- a/vendor/libghostty-vt/src/font/sprite/draw/powerline.zig
+++ b/vendor/libghostty-vt/src/font/sprite/draw/powerline.zig
@@ -292,8 +292,13 @@ pub fn drawE0B5(
const radius: f64 = @min(float_width, float_height / 2);
- var path = canvas.staticPath(4);
+ // Note on the first/final lineTo moves: this is to enforce horizontal
+ // lines on both ends. This ensures that when the path is offset and
+ // stroked, the ends are butt-capped entirely perpendicularly; curveTo
+ // lerping would produce very slight slopes otherwise.
+ var path = canvas.staticPath(6);
path.moveTo(0, 0);
+ path.lineTo(1, 0);
path.curveTo(
radius * c,
0,
@@ -308,9 +313,10 @@ pub fn drawE0B5(
float_height - radius + radius * c,
radius * c,
float_height,
- 0,
+ 1,
float_height,
);
+ path.lineTo(0, float_height);
try canvas.innerStrokePath(path.wrapped_path, .{
.line_width = @floatFromInt(metrics.box_thickness),