[DMenu] Dump when there is an empty filter.

This commit is contained in:
Dave Davenport 2016-11-13 23:15:13 +01:00
parent 02d8b7a31c
commit 7cc90abceb

View file

@ -656,7 +656,7 @@ int dmenu_switcher_dialog ( void )
GRegex **tokens = tokenize ( config.filter ? config.filter : "", config.case_sensitive ); GRegex **tokens = tokenize ( config.filter ? config.filter : "", config.case_sensitive );
unsigned int i = 0; unsigned int i = 0;
for ( i = 0; i < cmd_list_length; i++ ) { for ( i = 0; i < cmd_list_length; i++ ) {
if ( token_match ( tokens, cmd_list[i] ) ) { if ( tokens == NULL || token_match ( tokens, cmd_list[i] ) ) {
dmenu_output_formatted_line ( pd->format, cmd_list[i], i, config.filter ); dmenu_output_formatted_line ( pd->format, cmd_list[i], i, config.filter );
} }
} }