Skip to content

Commit

Permalink
[DMenu] Dump when there is an empty filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveDavenport committed Nov 13, 2016
1 parent 02d8b7a commit 7cc90ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/dialogs/dmenu.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ int dmenu_switcher_dialog ( void )
GRegex **tokens = tokenize ( config.filter ? config.filter : "", config.case_sensitive );
unsigned int i = 0;
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 );
}
}
Expand Down

0 comments on commit 7cc90ab

Please sign in to comment.