diff options
Diffstat (limited to 'core/views.zig')
| -rw-r--r-- | core/views.zig | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/views.zig b/core/views.zig index e5f2038e..b05a116b 100644 --- a/core/views.zig +++ b/core/views.zig @@ -41,7 +41,7 @@ pub const away_kept_ns: u64 = 30 * std.time.ns_per_s; /// layout, which of its texts has the keyboard, how far it is scrolled (a /// terminal's history too), and what the view's step measured of it (its /// tag's rows, its bands). -const pane_fields = [_][:0]const u8{ "focus", "vweight", "collapsed", "docked_to", "hscroll", "tag_scroll", "tag_top", "tag_rows", "view", "layers", "notices", "pan", "follow_scroll", "scrolled_to" }; +const pane_fields = [_][:0]const u8{ "focus", "vweight", "collapsed", "docked_to", "hscroll", "tag_scroll", "tag_top", "tag_rows", "band_rows", "view", "layers", "notices", "pan", "follow_scroll", "scrolled_to" }; /// The body's: its cursor, selections and mode. Its undo stays the pane's. const body_fields = [_][:0]const u8{ "mode", "cur_pinned", "cur_row", "cur_col", "vsel", "sels", "nsel", "select", "sticky_col", "restore_cursor", "last_edit", "reg_wait", "normal", "find_op", "find_ch" }; @@ -56,6 +56,7 @@ pub const PaneView = struct { tag_scroll: u16 = 0, tag_top: u16 = 0, tag_rows: u16 = 1, + band_rows: u16 = 0, view: Pane.SessionView = .{}, layers: File.Layers = .{}, notices: Pane.Notices = .{}, @@ -73,7 +74,7 @@ pub const PaneView = struct { /// In a dump (`Shares`): what a pane's step works out again. Its `view` /// is dumped: the step after `unpark` reads it before it syncs. - pub const replica = .{ .derived = .{ "notices", "pan" } }; + pub const replica = .{ .derived = .{ "notices", "pan", "band_rows" } }; }; /// The panes' shares of a view not live, as a session's dump keeps them |
