mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
Small fix initial view, allowing empty box to be selected.
This commit is contained in:
parent
4b5693653f
commit
9d14f4f39f
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue