Sync OpenBSD patchset 999:

Add an option to disable the window rename escape sequence, from Romain
Francoise.
This commit is contained in:
Tiago Cunha
2012-01-20 21:18:39 +00:00
parent b79189958f
commit d9eb34b28d
3 changed files with 14 additions and 0 deletions

View File

@ -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);