mirror of https://github.com/davatorium/rofi.git
Change `-i` mode to match dmenu. Bug #200
This commit is contained in:
parent
5777ee57e5
commit
8ca3c276c9
|
@ -192,11 +192,7 @@ int dmenu_switcher_dialog ( char **input )
|
||||||
|
|
||||||
// By default we print the unescaped line back.
|
// By default we print the unescaped line back.
|
||||||
char *format = "s";
|
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.
|
// Allow user to override the output format.
|
||||||
find_arg_str ( "-format", &format );
|
find_arg_str ( "-format", &format );
|
||||||
// Check prompt
|
// Check prompt
|
||||||
|
@ -246,6 +242,11 @@ int dmenu_switcher_dialog ( char **input )
|
||||||
if ( find_arg ( "-b" ) >= 0 ) {
|
if ( find_arg ( "-b" ) >= 0 ) {
|
||||||
config.location = 6;
|
config.location = 6;
|
||||||
}
|
}
|
||||||
|
/* -i case insensitive */
|
||||||
|
config.case_sensitive = TRUE;
|
||||||
|
if ( find_arg ( "-i" ) >= 0 ) {
|
||||||
|
config.case_sensitive = FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
do {
|
do {
|
||||||
int next_pos = selected_line;
|
int next_pos = selected_line;
|
||||||
|
|
Loading…
Reference in New Issue