From 3eb5ccd2914f9f25ba61d11d17656673e40c6aae Mon Sep 17 00:00:00 2001 From: Bohdan Triapitsyn Date: Sat, 18 Jul 2026 10:44:59 +0300 Subject: [PATCH] fix: apply ghostty patch on clean installs --- patches/ghostty-web+0.4.0.patch | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/patches/ghostty-web+0.4.0.patch b/patches/ghostty-web+0.4.0.patch index 8be87e4f..7c6becb4 100644 --- a/patches/ghostty-web+0.4.0.patch +++ b/patches/ghostty-web+0.4.0.patch @@ -3,9 +3,9 @@ index 0000000000000000000000000000000000000000..11111111111111111111111111111111 --- a/node_modules/ghostty-web/dist/ghostty-web.js +++ b/node_modules/ghostty-web/dist/ghostty-web.js @@ -1538,1 +1538,1 @@ -- if (A.grapheme_len > 0 && ((k = this.currentBuffer) != null && k.getGraphemeString) ? N = this.currentBuffer.getGraphemeString(g, B) : N = A.codepoint == null || A.codepoint <= 0 || A.codepoint > 1114111 || A.codepoint >= 55296 && A.codepoint <= 57343 ? " " : String.fromCodePoint(A.codepoint), this.ctx.fillText(N, w, s), A.flags & e.FAINT && (this.ctx.globalAlpha = 1), A.flags & e.UNDERLINE) { +- if (A.grapheme_len > 0 && ((k = this.currentBuffer) != null && k.getGraphemeString) ? N = this.currentBuffer.getGraphemeString(g, B) : N = String.fromCodePoint(A.codepoint || 32), this.ctx.fillText(N, w, s), A.flags & e.FAINT && (this.ctx.globalAlpha = 1), A.flags & e.UNDERLINE) { + if (A.grapheme_len > 0 && ((k = this.currentBuffer) != null && k.getGraphemeString) ? N = this.currentBuffer.getGraphemeString(g, B) : N = A.codepoint == null || A.codepoint <= 0 || A.codepoint > 1114111 || A.codepoint >= 55296 && A.codepoint <= 57343 ? " " : String.fromCodePoint(A.codepoint), this.renderBlockChar(A.codepoint || 32, E, C, I) || this.ctx.fillText(N, w, s), A.flags & e.FAINT && (this.ctx.globalAlpha = 1), A.flags & e.UNDERLINE) { -@@ -1557,1 +1557,36 @@ +@@ -1557,5 +1557,40 @@ } + renderBlockChar(A, B, g, E) { + const C = this.metrics.height, I = E / 2, D = C / 2; @@ -42,3 +42,7 @@ index 0000000000000000000000000000000000000000..11111111111111111111111111111111 + default: return !1; + } + } + /** + * Render cursor + */ + renderCursor(A, B) {