From 872bffcaccbd75e622dfe9c02aad6f23cfde180d Mon Sep 17 00:00:00 2001 From: Okan Demirmen Date: Wed, 14 Nov 2012 21:12:25 +0000 Subject: tab-complete buglet fix: once exec_path is completed, allow for subsequent completion; from Alexander Polakov --- app/cwm/menu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'app/cwm/menu.c') diff --git a/app/cwm/menu.c b/app/cwm/menu.c index 688df4097..7fbab0fa0 100644 --- a/app/cwm/menu.c +++ b/app/cwm/menu.c @@ -16,7 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: menu.c,v 1.44 2012/11/09 03:52:02 okan Exp $ + * $OpenBSD: menu.c,v 1.45 2012/11/14 21:12:24 okan Exp $ */ #include @@ -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)); -- cgit v1.2.3