aboutsummaryrefslogtreecommitdiff
path: root/osc.c
diff options
context:
space:
mode:
Diffstat (limited to 'osc.c')
-rw-r--r--osc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/osc.c b/osc.c
index 95af5bff..05281d0e 100644
--- a/osc.c
+++ b/osc.c
@@ -1149,6 +1149,9 @@ kitty_text_size(struct terminal *term, char *string)
*text = '\0';
text++;
+ if (text[0] == '\0')
+ return;
+
char32_t *wchars = ambstoc32(text);
if (wchars == NULL)
return;