Merge branch 'master' into zig-0.14
This commit is contained in:
commit
2047190dd1
2 changed files with 17 additions and 15 deletions
|
@ -4518,7 +4518,9 @@ pub const Editor = struct {
|
|||
return error.InvalidGotoColumnArgument;
|
||||
const root = self.buf_root() catch return;
|
||||
const primary = self.get_primary();
|
||||
try primary.cursor.move_to(root, primary.cursor.row, @intCast(if (column < 1) 0 else column - 1), self.metrics);
|
||||
column = if (column < 1) 0 else column - 1;
|
||||
column = try root.pos_to_width(primary.cursor.row, column, self.metrics);
|
||||
try primary.cursor.move_to(root, primary.cursor.row, column, self.metrics);
|
||||
self.clamp();
|
||||
}
|
||||
pub const goto_column_meta: Meta = .{ .arguments = &.{.integer} };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue