From 0df6df46d71b86794e1f0dd04d32791fefea0311 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 10 Oct 2009 14:50:57 +0200 Subject: [PATCH] screen_keydef: call list_window_reset() after entering a command --- src/screen_keydef.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/screen_keydef.c b/src/screen_keydef.c index 44e0838..3261bc9 100644 --- a/src/screen_keydef.c +++ b/src/screen_keydef.c @@ -318,9 +318,7 @@ keydef_cmd(G_GNUC_UNUSED struct mpdclient *c, command_t cmd) save_keys(); } else { subcmd = lw->selected; - lw->selected=0; - lw->selected_start = lw->selected; - lw->selected_end = lw->selected; + list_window_reset(lw); check_subcmd_length(); keydef_repaint(); -- 2.30.2