1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-03 04:23:42 -05:00

Fix tab cycle on case difference.

This commit is contained in:
Qball Cow 2013-02-04 00:30:27 +01:00
parent f7a58f6118
commit df5e82efbb

View file

@ -777,8 +777,8 @@ int menu(char **lines, char **input, char *prompt, int selected, Time *time)
break;
}
int length_prefix = calculate_common_prefix(filtered, max_lines);
printf("Prefix: %s:%d\n", filtered[0], length_prefix);
if(length_prefix && strncmp(filtered[0], text->text, length_prefix)) {
printf("Prefix: %s:%s:%d\n", filtered[0],text->text, length_prefix);
if(length_prefix && strncasecmp(filtered[0], text->text, length_prefix)) {
// Do not want to modify original string, so make copy.
// not eff..
char * str = strndup(filtered[0], length_prefix);