mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05: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
6
notify.c
6
notify.c
|
|
@ -66,10 +66,10 @@ consume_stdout(struct notification *notif, bool eof)
|
|||
left -= len + (eol != NULL ? 1 : 0);
|
||||
}
|
||||
|
||||
if (left > 0) {
|
||||
if (left > 0)
|
||||
memmove(notif->stdout_data, data, left);
|
||||
notif->stdout_sz = left;
|
||||
}
|
||||
|
||||
notif->stdout_sz = left;
|
||||
}
|
||||
|
||||
static bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue