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
All checks were successful
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 1m13s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user