From 3d535f8360f35132faaeef093d61cf377be5e9cc Mon Sep 17 00:00:00 2001 From: t Date: Tue, 9 Jun 2026 10:13:26 -0600 Subject: finalize cursor on quit --- src/tui_app.zig | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/tui_app.zig') diff --git a/src/tui_app.zig b/src/tui_app.zig index f2a205b..c99985b 100644 --- a/src/tui_app.zig +++ b/src/tui_app.zig @@ -1039,6 +1039,10 @@ pub fn runLoop(app: *App, term: *Terminal, opts: RunOptions) !void { // are consumed in `handleBytes`, which enables the modifyOtherKeys fallback // iff the terminal turns out not to support Kitty. term.writeAll(input_mod.negotiate_query); + defer { + app.engine.finalizeCursor() catch {}; + app.flushSink(); + } defer { input_mod.setKittyActive(false); if (hs.mok_enabled) term.writeAll(input_mod.disable_modify_other_keys); -- cgit v1.3