fix: mru position should not override line numbers on command line
This commit is contained in:
parent
e285099253
commit
ba470610be
1 changed files with 1 additions and 1 deletions
|
@ -359,7 +359,7 @@ const cmds = struct {
|
|||
const same_file = if (self.get_active_file_path()) |fp| std.mem.eql(u8, fp, f) else false;
|
||||
const have_editor_metadata = if (self.buffer_manager.get_buffer_for_file(f)) |_| true else false;
|
||||
|
||||
if (!same_file and !have_editor_metadata)
|
||||
if (!same_file and !have_editor_metadata and line == null)
|
||||
if (try project_manager.get_mru_position(self.allocator, f)) |pos| {
|
||||
line = @intCast(pos.row);
|
||||
column = @intCast(pos.col);
|
||||
|
|
Loading…
Add table
Reference in a new issue