diff options
Diffstat (limited to 'core/Pick.zig')
| -rw-r--r-- | core/Pick.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/Pick.zig b/core/Pick.zig index cfef2baf..9a9d0cde 100644 --- a/core/Pick.zig +++ b/core/Pick.zig @@ -1009,7 +1009,7 @@ fn preview(p: *Pardes, pk: *Pick) void { // laid out again before the place is put in its rows. if (!pk.previewed) { pk.previewed = true; - p.sync(); + p.layOut(); } const keyboard = p.view().active; defer p.view().active = keyboard; @@ -1060,7 +1060,7 @@ fn showText(p: *Pardes, pk: *Pick, id: usize, path_: []const u8, bytes: []u8) vo } pane.hscroll = 0; pk.previewed = true; - p.sync(); + p.layOut(); } /// Landing pane `id` showing the file at `path` through kind `k`, as a @@ -1083,7 +1083,7 @@ fn showKind(p: *Pardes, pk: *Pick, id: usize, k: u8, path: []const u8, bytes: [] Kind.close(p, pane); return showText(p, pk, id, path, line); } - p.sync(); + p.layOut(); } /// The one line a file shows while a picker previews it and none of its @@ -1154,7 +1154,7 @@ fn putBack(p: *Pardes, pk: *Pick) void { pane.body.cur_row = pk.aside_row; pane.body.cur_col = pk.aside_col; pane.body.vsel.active = false; - p.sync(); + p.layOut(); } /// The live picker rolled up (Esc, or the tag put to rest by anything): |
