diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/pardes.zig | 3 | ||||
| -rw-r--r-- | src/views.zig | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/pardes.zig b/src/pardes.zig index 88d75fd1..59233347 100644 --- a/src/pardes.zig +++ b/src/pardes.zig @@ -7857,6 +7857,9 @@ pub const Pardes = struct { /// Whether the live view sizes terminal `pane`: a terminal shown at two /// sizes takes the size of the view that typed into it last, and any /// view's once that one is gone. The others show it at that size. + // ponytail: a view smaller than the terminal shows its top rows, the + // rest cut; panning to its cursor, as tmux does, when a small view must + // follow a busy shell it never types into. fn sizes(p: *Pardes, pane: *Pane) bool { if (pane.sized_by == p.view) return true; if (views.isOpen(p, pane.sized_by)) return false; diff --git a/src/views.zig b/src/views.zig index ae2b338d..e3ba5b4e 100644 --- a/src/views.zig +++ b/src/views.zig @@ -339,7 +339,9 @@ pub fn drawOthers(p: *Pardes, h: pardes.Host) !void { _ = p.frame_arena.reset(.{ .retain_with_limit = pardes.memory.limits.frame_kept }); const surface = try p.render(p.frame_arena.allocator()); if (v.present) |f| f(h.ctx, surface); - if (v.post_present) |f| f(h.ctx); + // No post_present: what a shell acknowledges there moves the + // session's pointer and hover, which are the live view's to move; + // a view's panels are acknowledged when it is live and drawn. copy(&drawn_fields, &p.parked[k].?.view, p); } } |
