fix: gutter click past end of file
This commit is contained in:
parent
b87e1a867b
commit
c9bd11667c
1 changed files with 1 additions and 0 deletions
|
@ -219,6 +219,7 @@ inline fn render_diff_symbols(self: *Self, diff_symbols: *[]Symbol, pos: usize,
|
|||
fn primary_click(self: *const Self, y: i32) error{Exit}!bool {
|
||||
var line = self.row + 1;
|
||||
line += @intCast(y);
|
||||
if (line > self.lines) line = self.lines;
|
||||
try command.executeName("goto_line", command.fmt(.{line}));
|
||||
try command.executeName("goto_column", command.fmt(.{1}));
|
||||
try command.executeName("select_end", .{});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue