diff --git a/src/tui/editor.zig b/src/tui/editor.zig index 8bcdfde..bc895eb 100644 --- a/src/tui/editor.zig +++ b/src/tui/editor.zig @@ -1847,7 +1847,7 @@ pub const Editor = struct { } fn send_editor_update(self: *const Self, old_root: ?Buffer.Root, new_root: ?Buffer.Root, eol_mode: Buffer.EolMode) !void { - _ = try self.handlers.msg(.{ "E", "update", token_from(new_root), token_from(old_root), @intFromEnum(eol_mode) }); + _ = try self.handlers.msg(.{ "E", "update" }); if (self.buffer) |buffer| if (self.syntax) |_| if (self.file_path) |file_path| if (old_root != null and new_root != null) project_manager.did_change(file_path, buffer.lsp_version, try text_from_root(new_root, eol_mode), try text_from_root(old_root, eol_mode), eol_mode) catch {}; if (self.buffer) |b| if (b.is_auto_save() and !b.is_ephemeral()) diff --git a/src/tui/editor_gutter.zig b/src/tui/editor_gutter.zig index 3062d96..83ad8b4 100644 --- a/src/tui/editor_gutter.zig +++ b/src/tui/editor_gutter.zig @@ -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();