From e8343539b6eb9a42724f46f091f69ee84c00063f Mon Sep 17 00:00:00 2001 From: okan Date: Wed, 14 Nov 2012 21:12:24 +0000 Subject: tab-complete buglet fix: once exec_path is completed, allow for subsequent completion; from Alexander Polakov --- menu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'menu.c') diff --git a/menu.c b/menu.c index 688df40..7fbab0f 100644 --- a/menu.c +++ b/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-2-gb3c3