From: Max Kellermann Date: Sat, 10 Oct 2009 12:50:57 +0000 (+0200) Subject: screen_keydef: call list_window_reset() after entering a command X-Git-Tag: release-0.16~149 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0df6df46d71b86794e1f0dd04d32791fefea0311;p=ncmpc.git screen_keydef: call list_window_reset() after entering a command --- 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();