mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-03 07:15:29 -04:00
notify: bug: always adjust amount of data left in stdout buffer
This commit is contained in:
parent
70b4638a75
commit
d5c773a58b
1 changed files with 3 additions and 3 deletions
4
notify.c
4
notify.c
|
|
@ -66,11 +66,11 @@ consume_stdout(struct notification *notif, bool eof)
|
||||||
left -= len + (eol != NULL ? 1 : 0);
|
left -= len + (eol != NULL ? 1 : 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (left > 0) {
|
if (left > 0)
|
||||||
memmove(notif->stdout_data, data, left);
|
memmove(notif->stdout_data, data, left);
|
||||||
|
|
||||||
notif->stdout_sz = left;
|
notif->stdout_sz = left;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
fdm_notify_stdout(struct fdm *fdm, int fd, int events, void *data)
|
fdm_notify_stdout(struct fdm *fdm, int fd, int events, void *data)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue