Code

screen_keydef: call list_window_reset() after entering a command
authorMax Kellermann <max@duempel.org>
Sat, 10 Oct 2009 12:50:57 +0000 (14:50 +0200)
committerMax Kellermann <max@duempel.org>
Sat, 10 Oct 2009 12:50:57 +0000 (14:50 +0200)
src/screen_keydef.c

index 44e08384e5165a4aaa4f0f6314647800e06f58c4..3261bc936d52226f8d069fcc8cea06af97377879 100644 (file)
@@ -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();