summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/server.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2015-07-20 15:50:04 +0000
committernicm <nicm@openbsd.org>2015-07-20 15:50:04 +0000
commit179ef39913a3f0e09f5a0f7919b7868c929f2fdf (patch)
treea250cceb2425cae35875f8a2c6574dcf73571f51 /usr.bin/tmux/server.c
parentVarious memory leaks upon error or unchecked allocations. (diff)
downloadwireguard-openbsd-179ef39913a3f0e09f5a0f7919b7868c929f2fdf.tar.xz
wireguard-openbsd-179ef39913a3f0e09f5a0f7919b7868c929f2fdf.zip
Add an option (history-file) for a file to save/restore command prompt
history, from Olof-Joachim Frahm.
Diffstat (limited to 'usr.bin/tmux/server.c')
-rw-r--r--usr.bin/tmux/server.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/server.c b/usr.bin/tmux/server.c
index 9e63221e816..1c95a6f7ba2 100644
--- a/usr.bin/tmux/server.c
+++ b/usr.bin/tmux/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.128 2015/06/05 18:18:32 nicm Exp $ */
+/* $OpenBSD: server.c,v 1.129 2015/07/20 15:50:04 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -240,6 +240,7 @@ server_start(int lockfd, char *lockfile)
cfg_add_cause("%s: %s", cfg_file, cause);
}
cmdq_continue(cfg_cmd_q);
+ status_prompt_load_history();
server_add_accept(0);
@@ -250,6 +251,7 @@ server_start(int lockfd, char *lockfile)
set_signals(server_signal_callback);
server_loop();
+ status_prompt_save_history();
exit(0);
}