diff --git a/src/tui/mainview.zig b/src/tui/mainview.zig index 3fd2331..e6a6243 100644 --- a/src/tui/mainview.zig +++ b/src/tui/mainview.zig @@ -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);