diff options
author | 2015-07-20 15:50:04 +0000 | |
---|---|---|
committer | 2015-07-20 15:50:04 +0000 | |
commit | 179ef39913a3f0e09f5a0f7919b7868c929f2fdf (patch) | |
tree | a250cceb2425cae35875f8a2c6574dcf73571f51 /usr.bin/tmux/server.c | |
parent | Various memory leaks upon error or unchecked allocations. (diff) | |
download | wireguard-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.c | 4 |
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); } |