diff options
author | okan | 2012-11-14 21:12:24 +0000 |
---|---|---|
committer | okan | 2012-11-14 21:12:24 +0000 |
commit | e8343539b6eb9a42724f46f091f69ee84c00063f (patch) | |
tree | 8d81b7e1feb3111c08a69c8e70beca67705b2f3d | |
parent | c2d6be52ef2a1daaaefab648441d56805f411b46 (diff) | |
download | cwm-e8343539b6eb9a42724f46f091f69ee84c00063f.tar.gz |
tab-complete buglet fix: once exec_path is completed, allow for
subsequent completion; from Alexander Polakov
-rw-r--r-- | menu.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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)); |