mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
parent
65b48aae4f
commit
a22c81c4a9
1 changed files with 4 additions and 0 deletions
|
@ -237,6 +237,10 @@ static void read_input_sync(DmenuModePrivateData *pd, unsigned int pre_read) {
|
|||
char *line = NULL;
|
||||
while (pre_read > 0 &&
|
||||
(nread = getdelim(&line, &len, pd->separator, pd->fd_file)) != -1) {
|
||||
if (line[nread - 1] == pd->separator) {
|
||||
nread--;
|
||||
line[nread] = '\0';
|
||||
}
|
||||
read_add(pd, line, nread);
|
||||
pre_read--;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue