aboutsummaryrefslogtreecommitdiff
path: root/vt.c
diff options
context:
space:
mode:
Diffstat (limited to 'vt.c')
-rw-r--r--vt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/vt.c b/vt.c
index 2b5eb27d..bd1cf4ca 100644
--- a/vt.c
+++ b/vt.c
@@ -703,6 +703,7 @@ static void
action_utf8_print(struct terminal *term, char32_t wc)
{
int width = c32width(wc);
+ bool insert_mode_disable = false;
const bool grapheme_clustering = term->grapheme_shaping;
#if !defined(FOOT_GRAPHEME_CLUSTERING)
@@ -757,6 +758,7 @@ action_utf8_print(struct terminal *term, char32_t wc)
if (base_width > 0) {
term->grid->cursor.point.col = col;
term->grid->cursor.lcf = false;
+ insert_mode_disable = true;
if (composed == NULL) {
bool base_from_primary;
@@ -954,7 +956,7 @@ action_utf8_print(struct terminal *term, char32_t wc)
out:
if (width > 0)
- term_print(term, wc, width);
+ term_print(term, wc, width, insert_mode_disable);
}
static void