diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2012-11-14 21:12:25 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2012-11-14 21:12:25 +0000 |
commit | 872bffcaccbd75e622dfe9c02aad6f23cfde180d (patch) | |
tree | b0b20a0bf4ae67edb2c8cf525bc03781b6f746bb | |
parent | 42ffddecf2ec17998308e13efede92f367eb3af5 (diff) |
tab-complete buglet fix: once exec_path is completed, allow for
subsequent completion; from Alexander Polakov
-rw-r--r-- | app/cwm/menu.c | 4 |
1 files changed, 1 insertions, 3 deletions
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 <sys/param.h> @@ -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)); |