From d0bf6a914f79771d1dd7a663224d1d94c03f0194 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 15 Aug 2023 11:47:31 -0700 Subject: [PATCH] termio: on restore mode we need to call setMode no matter what --- src/termio/Exec.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/termio/Exec.zig b/src/termio/Exec.zig index d574bef00..d4d858957 100644 --- a/src/termio/Exec.zig +++ b/src/termio/Exec.zig @@ -1205,7 +1205,7 @@ const StreamHandler = struct { // side effects and we want to make sure we process those. const v = self.terminal.modes.restore(mode); // log.debug("restore mode={} v={}", .{ mode, v }); - if (v) try self.setMode(mode, true); + try self.setMode(mode, v); } pub fn setMode(self: *StreamHandler, mode: terminal.Mode, enabled: bool) !void {