mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
Change -i
mode to match dmenu. Bug #200
This commit is contained in:
parent
5777ee57e5
commit
8ca3c276c9
1 changed files with 6 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue