~smlavine/onclick

25a5d94c8556f3cae28d257c4cc30c758a366044 — Sebastian LaVine 7 months ago 716f556
Don't use defer in cleanup()

Unnecessary at this scale
1 files changed, 2 insertions(+), 2 deletions(-)

M main.ha
M main.ha => main.ha +2 -2
@@ 47,10 47,10 @@ fn _prepare(s: signal::sig, i: *signal::siginfo, u: *opaque) void = {
};

fn cleanup() void = {
	// Disable mouse tracking when the program exits.
	defer fmt::fprint(tty, "\x1B[?1000;1006;1015l")!;
	// Restore settings set in prepare().
	tty::termios_restore(&termios);
	// Disable mouse tracking when the program exits.
	fmt::fprint(tty, "\x1B[?1000;1006;1015l")!;
};

fn _cleanup(s: signal::sig, i: *signal::siginfo, u: *opaque) void = {