summaryrefslogtreecommitdiffstats
path: root/spawn.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2020-05-26 06:15:13 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-05-26 06:15:57 +0100
commitfd4d3e87938206d8d05509162c3f3a3c274bb478 (patch)
treebdc4175f034da24b0348b4c94cf3d5a692c6bc98 /spawn.c
parentb34af611a5c02b82ee796edcd4b6c5999cdbeb8a (diff)
Set IUTF8 again when it exists.
Diffstat (limited to 'spawn.c')
-rw-r--r--spawn.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/spawn.c b/spawn.c
index 9f65b329..7c279eff 100644
--- a/spawn.c
+++ b/spawn.c
@@ -395,6 +395,9 @@ spawn_pane(struct spawn_context *sc, char **cause)
now.c_cc[VERASE] = '\177';
else
now.c_cc[VERASE] = key;
+#ifdef IUTF8
+ now.c_iflag |= IUTF8;
+#endif
if (tcsetattr(STDIN_FILENO, TCSANOW, &now) != 0)
_exit(1);