summaryrefslogtreecommitdiffstats
path: root/options-table.c
diff options
context:
space:
mode:
authornicm <nicm>2022-03-17 11:35:37 +0000
committernicm <nicm>2022-03-17 11:35:37 +0000
commit10d689e7354f789f951016f7f4d57a0c2d14e124 (patch)
treeb1c366cc8c0df2551c2e4b66341dde7959e2c5b1 /options-table.c
parente6e737ac0bf9a5be729b5c71f3a582355432d041 (diff)
Add an option (scroll-on-clear) to control if tmux scrolls into history
on clear, from Robert Lange in GitHub issue 3121.
Diffstat (limited to 'options-table.c')
-rw-r--r--options-table.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/options-table.c b/options-table.c
index 46b96ec4..b0870118 100644
--- a/options-table.c
+++ b/options-table.c
@@ -1081,6 +1081,14 @@ const struct options_table_entry options_table[] = {
"remain-on-exit is enabled."
},
+ { .name = "scroll-on-clear",
+ .type = OPTIONS_TABLE_FLAG,
+ .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE,
+ .default_num = 1,
+ .text = "Whether the contents of the screen should be scrolled into"
+ "history when clearing the whole screen."
+ },
+
{ .name = "synchronize-panes",
.type = OPTIONS_TABLE_FLAG,
.scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE,