diff options
author | QC <qball@gmpclient.org> | 2015-09-20 10:32:49 +0200 |
---|---|---|
committer | QC <qball@gmpclient.org> | 2015-09-20 10:32:49 +0200 |
commit | 108c16e0d4a8d576a2655daebc022832f4e647db (patch) | |
tree | 8a100ce2cd34883af5a198746aab923d8a91a889 | |
parent | ac99011535c8183080cc75e2259e3b6e94fda7a6 (diff) |
Default disable levenshtein
-rw-r--r-- | config/config.def.c | 2 | ||||
-rw-r--r-- | include/rofi.h | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/config/config.def.c b/config/config.def.c index c9b2ec1c..86d0354a 100644 --- a/config/config.def.c +++ b/config/config.def.c @@ -111,7 +111,7 @@ Settings config = { /** Do not use history */ .disable_history = FALSE, /** Use levenshtein sorting when matching */ - .levenshtein_sort = TRUE, + .levenshtein_sort = FALSE, /** Case sensitivity of the search */ .case_sensitive = FALSE, /** Separator to use for dmenu mode */ diff --git a/include/rofi.h b/include/rofi.h index 8bdf098e..35d56cc8 100644 --- a/include/rofi.h +++ b/include/rofi.h @@ -269,10 +269,8 @@ struct _Switcher */ void ( *init )( struct _Switcher *sw ); char ** ( *get_data )( unsigned int *length, struct _Switcher *pd ); - int ( *match )( char **tokens, const char *input, int case_sensitive, int index, - struct _Switcher *data ); - SwitcherMode ( *result )( int menu_retv, char **input, unsigned int selected_line, - struct _Switcher *pd ); + int ( *match )( char **tokens, const char *input, int case_sensitive, int index, struct _Switcher *data ); + SwitcherMode ( *result )( int menu_retv, char **input, unsigned int selected_line, struct _Switcher *pd ); void ( *destroy )( struct _Switcher *pd ); // Token match. menu_match_cb token_match; |