aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/terminal.c b/terminal.c
index c8e49663..2e868793 100644
--- a/terminal.c
+++ b/terminal.c
@@ -4153,7 +4153,7 @@ term_process_and_print_non_ascii(struct terminal *term, char32_t wc)
if (grapheme_clustering) {
/* Check if we're on a grapheme cluster break */
if (utf8proc_grapheme_break_stateful(
- last, wc, &term->vt.grapheme_state))
+ last, wc, &term->vt.grapheme_state) && width > 0)
{
term_reset_grapheme_state(term);
goto out;