Skip to content

Commit

Permalink
Merge pull request #1596 from gpanders/page-list-clone-viewport
Browse files Browse the repository at this point in the history
terminal: set PageList viewport to active area when cloned
  • Loading branch information
mitchellh authored Mar 19, 2024
2 parents dfc8d23 + 48816fe commit cae1f0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/terminal/PageList.zig
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ pub const Clone = struct {

/// Clone this pagelist from the top to bottom (inclusive).
///
/// The viewport is always moved to the top-left.
/// The viewport is always moved to the active area.
///
/// The cloned pagelist must contain at least enough rows for the active
/// area. If the region specified has less rows than the active area then
Expand Down Expand Up @@ -478,7 +478,7 @@ pub fn clone(
.cols = self.cols,
.rows = self.rows,
.tracked_pins = tracked_pins,
.viewport = .{ .top = {} },
.viewport = .{ .active = {} },
.viewport_pin = viewport_pin,
};

Expand Down

0 comments on commit cae1f0f

Please sign in to comment.