aboutsummaryrefslogtreecommitdiff
path: root/options-table.c
diff options
context:
space:
mode:
authornicm <nicm>2021-06-10 07:50:03 +0000
committernicm <nicm>2021-06-10 07:50:03 +0000
commit866117636e47c9a5d961df2ac40456b7c910a932 (patch)
tree516d26a3477989117ad29f0276d0c33ca8cc0743 /options-table.c
parent6c659494f5591ebba2ef91e6cfa6a24761c14915 (diff)
downloadrtmux-866117636e47c9a5d961df2ac40456b7c910a932.tar.gz
rtmux-866117636e47c9a5d961df2ac40456b7c910a932.tar.bz2
rtmux-866117636e47c9a5d961df2ac40456b7c910a932.zip
Add different command historys for different types of prompts
("command", "search" etc). From Anindya Mukherjee.
Diffstat (limited to 'options-table.c')
-rw-r--r--options-table.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/options-table.c b/options-table.c
index 4f4d9ff6..73c7fd63 100644
--- a/options-table.c
+++ b/options-table.c
@@ -302,6 +302,15 @@ const struct options_table_entry options_table[] = {
.text = "Maximum number of server messages to keep."
},
+ { .name = "prompt-history-limit",
+ .type = OPTIONS_TABLE_NUMBER,
+ .scope = OPTIONS_TABLE_SERVER,
+ .minimum = 0,
+ .maximum = INT_MAX,
+ .default_num = 100,
+ .text = "Maximum number of commands to keep in history."
+ },
+
{ .name = "set-clipboard",
.type = OPTIONS_TABLE_CHOICE,
.scope = OPTIONS_TABLE_SERVER,