mod(app): remove interupt method, merged with stop
All checks were successful
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 1m13s

This commit is contained in:
2026-02-13 13:27:58 +01:00
parent 0bb91cab0d
commit b39d4326be
4 changed files with 18 additions and 29 deletions

View File

@@ -147,8 +147,8 @@ pub fn main() !void {
if (key.eql(.{ .cp = 'c', .mod = .{ .ctrl = true } })) app.quit();
if (key.eql(.{ .cp = 'n', .mod = .{ .ctrl = true } })) {
try app.interrupt();
renderer.size = .{}; // reset size, such that next resize will cause a full re-draw!
try app.stop();
defer renderer.clear() catch @panic("could not clear the screen");
defer app.start(.full) catch @panic("could not start app event loop");
var child = std.process.Child.init(&.{"vim"}, allocator);
_ = child.spawnAndWait() catch |err| app.postEvent(.{
@@ -157,7 +157,6 @@ pub fn main() !void {
.msg = "Spawning $EDITOR failed",
},
});
continue;
}
},
// NOTE errors could be displayed in another container in case one was received, etc. to provide the user with feedback