mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
tab-complete buglet fix: once exec_path is completed, allow for
subsequent completion; from Alexander Polakov
This commit is contained in:
parent
28224ff830
commit
587d623e4a
2
menu.c
2
menu.c
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user