Do not remove the automatic-rename option from the global set, only from

the window (it must stay in the global set or tmux will crash). GitHub
issue 2188.
This commit is contained in:
Nicholas Marriott
2020-04-30 15:20:08 +01:00
parent d0fa520788
commit 6a33a12798
3 changed files with 6 additions and 2 deletions

View File

@ -2304,7 +2304,7 @@ input_exit_rename(struct input_ctx *ictx)
return;
if (ictx->input_len == 0) {
oe = options_get(wp->window->options, "automatic-rename");
oe = options_get_only(wp->window->options, "automatic-rename");
if (oe != NULL)
options_remove(oe);
return;