Change -i mode to match dmenu. Bug #200

This commit is contained in:
QC 2015-08-02 16:44:03 +02:00
parent 5777ee57e5
commit 8ca3c276c9

View file

@ -192,11 +192,7 @@ int dmenu_switcher_dialog ( char **input )
// By default we print the unescaped line back.
char *format = "s";
// This is here for compatibility reason.
// Use -format 'i' instead.
if ( find_arg ( "-i" ) >= 0 ) {
format = "i";
}
// Allow user to override the output format.
find_arg_str ( "-format", &format );
// Check prompt
@ -246,6 +242,11 @@ int dmenu_switcher_dialog ( char **input )
if ( find_arg ( "-b" ) >= 0 ) {
config.location = 6;
}
/* -i case insensitive */
config.case_sensitive = TRUE;
if ( find_arg ( "-i" ) >= 0 ) {
config.case_sensitive = FALSE;
}
do {
int next_pos = selected_line;