diff options
author | 2012-01-20 19:15:40 +0000 | |
---|---|---|
committer | 2012-01-20 19:15:40 +0000 | |
commit | 8d7ec3691d604e46bd953c062ccf2f5edc854bdd (patch) | |
tree | aa2ed608627c6b16966c515f02b5633bfec8a440 /usr.bin/tmux/input.c | |
parent | Add space movement keys for vi mode in the status line from Ben Boeckel. (diff) | |
download | wireguard-openbsd-8d7ec3691d604e46bd953c062ccf2f5edc854bdd.tar.xz wireguard-openbsd-8d7ec3691d604e46bd953c062ccf2f5edc854bdd.zip |
Add an option to disable the window rename escape sequence, from Romain
Francoise.
Diffstat (limited to 'usr.bin/tmux/input.c')
-rw-r--r-- | usr.bin/tmux/input.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/input.c b/usr.bin/tmux/input.c index 55ca5d0eae1..351b84b94c1 100644 --- a/usr.bin/tmux/input.c +++ b/usr.bin/tmux/input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: input.c,v 1.43 2011/12/29 08:06:24 nicm Exp $ */ +/* $OpenBSD: input.c,v 1.44 2012/01/20 19:15:40 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -1558,6 +1558,8 @@ input_exit_rename(struct input_ctx *ictx) { if (ictx->flags & INPUT_DISCARD) return; + if (!options_get_number(&ictx->wp->window->options, "allow-rename")) + return; log_debug("%s: \"%s\"", __func__, ictx->input_buf); xfree(ictx->wp->window->name); |