summaryrefslogtreecommitdiff
path: root/src/File.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/File.zig')
-rw-r--r--src/File.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/File.zig b/src/File.zig
index 038f4920..f2723851 100644
--- a/src/File.zig
+++ b/src/File.zig
@@ -797,7 +797,7 @@ pub fn open(p: *Pardes, id: usize, path: []const u8, line: usize) !*Pane {
std.debug.assert(p.panes[id] == null and !p.reserved_slots[id]);
const path_copy = try p.gpa.dupe(u8, path);
errdefer p.gpa.free(path_copy);
- const pane = try terminal.createDoc(p.gpa, p.screen_w, p.screen_h);
+ const pane = try terminal.createDoc(p.gpa, p.view().screen_w, p.view().screen_h);
errdefer p.gpa.destroy(pane);
const history = try History.create(p.gpa);
errdefer p.gpa.destroy(history);
@@ -1071,7 +1071,7 @@ const ParkedPlaces = struct {
const tf = if (pane.file) |*file| file else continue;
if (tf != f and (f.twin == 0 or tf.twin != f.twin)) continue;
for (0..pardes.views.max) |k| {
- if (k == p.view or !pardes.views.isOpen(p, @intCast(k)) or pp.n == max) continue;
+ if (k == p.live or !pardes.views.isOpen(p, @intCast(k)) or pp.n == max) continue;
const v = &pane.pv[k];
const at = lineStart(p.gpa, tf, @intCast(@max(0, v.body.cur_row))) + @as(usize, @intCast(@max(0, v.body.cur_col)));
pp.at[pp.n] = .{