termio: on restore mode we need to call setMode no matter what

This commit is contained in:
Mitchell Hashimoto
2023-08-15 11:47:31 -07:00
parent 06f82ad713
commit d0bf6a914f

View File

@ -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 {