refactor: pass gutter scroll events directly to related editor

This commit is contained in:
CJ van den Berg 2026-01-06 19:17:25 +01:00
parent f7f227dd82
commit 902fc0ab75
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -333,13 +333,13 @@ fn middle_click(_: *Self) error{Exit}!bool {
return true;
}
fn mouse_click_button4(_: *Self) error{Exit}!bool {
try command.executeName("scroll_up_pageup", .{});
fn mouse_click_button4(self: *Self) error{Exit}!bool {
self.editor.scroll_up_pageup(.{}) catch {};
return true;
}
fn mouse_click_button5(_: *Self) error{Exit}!bool {
try command.executeName("scroll_down_pagedown", .{});
fn mouse_click_button5(self: *Self) error{Exit}!bool {
self.editor.scroll_down_pagedown(.{}) catch {};
return true;
}