aboutsummaryrefslogtreecommitdiff
path: root/notify.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2024-07-23 16:48:45 +0000
committerDaniel Eklöf <daniel@ekloef.se>2024-07-23 16:48:45 +0000
commitd5c773a58b2cdadf7aee2fe16664c168e750b953 (patch)
tree6d3333dadabae3fcd6bbf9905b5d8eef0f7c224f /notify.c
parentosc: kitty notifications: implement query (diff)
notify: bug: always adjust amount of data left in stdout buffer
Diffstat (limited to 'notify.c')
-rw-r--r--notify.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/notify.c b/notify.c
index 9cf44251..2dd303db 100644
--- a/notify.c
+++ b/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