From 0cd761808a0fd53c82634e8be03c8a54ec3a3ca5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 16 Nov 2023 14:55:53 +0530 Subject: [PATCH] draw_codepoint is never called with from_inputstream=true --- kitty/screen.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/kitty/screen.c b/kitty/screen.c index e45d9dbf8..f0d7bb8e8 100644 --- a/kitty/screen.c +++ b/kitty/screen.c @@ -747,11 +747,10 @@ screen_draw_text(Screen *self, const uint32_t *chars, size_t num_chars) { } static void -draw_codepoint(Screen *self, char_type ch, bool from_input_stream) { - if (from_input_stream) screen_on_input(self); +draw_codepoint(Screen *self, char_type ch) { uint32_t lch = self->last_graphic_char; draw_text(self, &ch, 1); - if (!from_input_stream) self->last_graphic_char = lch; + self->last_graphic_char = lch; } void @@ -3130,7 +3129,7 @@ screen_draw_overlay_line(Screen *self) { const Py_ssize_t sz = PyUnicode_GET_LENGTH(self->overlay_line.overlay_text); for (Py_ssize_t pos = 0; pos < sz; pos++) { before = self->cursor->x; - draw_codepoint(self, PyUnicode_READ(kind, data, pos), false); + draw_codepoint(self, PyUnicode_READ(kind, data, pos)); index_type len = self->cursor->x - before; if (columns_exceeded > 0) { // Reset the cursor to maintain right alignment when the overlay exceeds the screen width.