fix: reset input idle timer when placing the cursor in an editor with the mouse

This is so that mouse clicks inside an editor widget may also trigger configured
idle_actions.
This commit is contained in:
CJ van den Berg 2025-11-10 14:10:00 +01:00
parent 36c975dc20
commit 7d740bfa2a
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 6 additions and 0 deletions

View file

@ -2502,6 +2502,7 @@ pub const Editor = struct {
self.clamp_mouse();
try self.send_editor_jump_destination();
if (self.jump_mode) try self.goto_definition(.{});
tui.reset_input_idle_timer();
}
pub fn primary_double_click(self: *Self, y: c_int, x: c_int) !void {