refactor: pass gutter scroll events directly to related editor
This commit is contained in:
parent
f7f227dd82
commit
902fc0ab75
1 changed files with 4 additions and 4 deletions
|
|
@ -333,13 +333,13 @@ fn middle_click(_: *Self) error{Exit}!bool {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
fn mouse_click_button4(_: *Self) error{Exit}!bool {
|
fn mouse_click_button4(self: *Self) error{Exit}!bool {
|
||||||
try command.executeName("scroll_up_pageup", .{});
|
self.editor.scroll_up_pageup(.{}) catch {};
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
fn mouse_click_button5(_: *Self) error{Exit}!bool {
|
fn mouse_click_button5(self: *Self) error{Exit}!bool {
|
||||||
try command.executeName("scroll_down_pagedown", .{});
|
self.editor.scroll_down_pagedown(.{}) catch {};
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue