aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authornicm <nicm>2020-06-16 08:18:34 +0000
committernicm <nicm>2020-06-16 08:18:34 +0000
commit1bf9555e4f1ad19e1e6f97ede6fb19808ff1c267 (patch)
tree517c3ac9fd211c1294523af5f9e11104ae41edaa /input.c
parentafe4ea4250073e482c6ec6accfc539f873df6977 (diff)
downloadrtmux-1bf9555e4f1ad19e1e6f97ede6fb19808ff1c267.tar.gz
rtmux-1bf9555e4f1ad19e1e6f97ede6fb19808ff1c267.tar.bz2
rtmux-1bf9555e4f1ad19e1e6f97ede6fb19808ff1c267.zip
d and D keys to reset to default in customize mode.
Diffstat (limited to 'input.c')
-rw-r--r--input.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/input.c b/input.c
index 46d8734d..a3850371 100644
--- a/input.c
+++ b/input.c
@@ -2347,7 +2347,7 @@ static void
input_exit_rename(struct input_ctx *ictx)
{
struct window_pane *wp = ictx->wp;
- struct options_entry *oe;
+ struct options_entry *o;
if (wp == NULL)
return;
@@ -2361,9 +2361,9 @@ input_exit_rename(struct input_ctx *ictx)
return;
if (ictx->input_len == 0) {
- oe = options_get_only(wp->window->options, "automatic-rename");
- if (oe != NULL)
- options_remove(oe);
+ o = options_get_only(wp->window->options, "automatic-rename");
+ if (o != NULL)
+ options_remove_or_default(o, -1, NULL);
return;
}
window_set_name(wp->window, ictx->input_buf);