refactor: simplify editor "update" event

This commit is contained in:
CJ van den Berg 2025-12-15 20:40:51 +01:00
parent 95e42d2c78
commit a561de6602
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 2 additions and 2 deletions

View file

@ -79,7 +79,7 @@ fn diff_symbols_clear(self: *Self) void {
}
pub fn handle_event(self: *Self, _: tp.pid_ref, m: tp.message) tp.result {
if (try m.match(.{ "E", "update", tp.more }))
if (try m.match(.{ "E", "update" }))
return self.diff_update() catch |e| return tp.exit_error(e, @errorReturnTrace());
if (try m.match(.{ "E", "view", tp.extract(&self.lines), tp.extract(&self.view_rows), tp.extract(&self.view_top) }))
return self.update_width();