summaryrefslogtreecommitdiffstats
path: root/input.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2012-01-20 19:15:40 +0000
committerNicholas Marriott <nicm@openbsd.org>2012-01-20 19:15:40 +0000
commitdcad13155b319e1ca2fafd3f0644e8efb15ac764 (patch)
treebaf88d9f1e884488aebefb0836751f2d1aec04b6 /input.c
parente6519d3e279ba12d44633c3162dd183148aea9f0 (diff)
Add an option to disable the window rename escape sequence, from Romain
Francoise.
Diffstat (limited to 'input.c')
-rw-r--r--input.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/input.c b/input.c
index b113bc2a..6fd2d90a 100644
--- a/input.c
+++ b/input.c
@@ -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);