summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/input.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2012-01-20 19:15:40 +0000
committernicm <nicm@openbsd.org>2012-01-20 19:15:40 +0000
commit8d7ec3691d604e46bd953c062ccf2f5edc854bdd (patch)
treeaa2ed608627c6b16966c515f02b5633bfec8a440 /usr.bin/tmux/input.c
parentAdd space movement keys for vi mode in the status line from Ben Boeckel. (diff)
downloadwireguard-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.c4
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);