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

Small fix initial view, allowing empty box to be selected.

This commit is contained in:
QC 2014-01-09 22:16:48 +01:00
parent 4b5693653f
commit 9d14f4f39f

View file

@ -696,7 +696,7 @@ int menu(char **lines, char **input, char *prompt, int selected, Time *time)
// filtered list
char **filtered = allocate_clear(sizeof(char*) * max_lines);
int *line_map = allocate_clear(sizeof(int) * max_lines);
int filtered_lines = max_lines;
int filtered_lines = 0;
int jin = 0;
for (i = 0; i < max_lines; i++)
@ -705,6 +705,7 @@ int menu(char **lines, char **input, char *prompt, int selected, Time *time)
filtered[jin] = lines[i];
line_map[jin] = i;
jin++;
filtered_lines++;
}
// resize window vertically to suit