From e416753cb381e39bd3b72294786aa2bc6f74fbbc Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Mon, 25 Jan 2016 08:58:56 +0100 Subject: [PATCH] On empty input, return CUSTOM_INPUT so to distinquish between cancel and empty. Fix #322 --- source/rofi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/rofi.c b/source/rofi.c index b3d03b67..172f9826 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -1417,7 +1417,7 @@ static void menu_mainloop_iter ( MenuState *state, XEvent *ev ) } else{ // Nothing entered and nothing selected. - state->retv = MENU_CANCEL; + state->retv = MENU_CUSTOM_INPUT; } if ( shift ) { state->retv |= MENU_SHIFT;