tab-complete buglet fix: once exec_path is completed, allow for

subsequent completion; from Alexander Polakov
This commit is contained in:
okan 2012-11-14 21:12:24 +00:00
parent 28224ff830
commit 587d623e4a

2
menu.c
View File

@ -299,12 +299,10 @@ menu_handle_key(XEvent *e, struct menu_ctx *mc, struct menu_q *menuq,
if ((mi = TAILQ_FIRST(resultq)) != NULL) {
/*
* - We are in exec_path menu mode
* - There's only one result
* - It is equal to the input
* We got a command, launch the file menu
*/
if ((mc->flags & CWM_MENU_FILE) &&
(TAILQ_NEXT(mi, resultentry) == NULL) &&
(strncmp(mc->searchstr, mi->text,
strlen(mi->text))) == 0)
return (menu_complete_path(mc));