aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/event
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/event')
-rw-r--r--src/nvim/event/loop.h2
-rw-r--r--src/nvim/event/process.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/event/loop.h b/src/nvim/event/loop.h
index c0e2f49e4f..f5dd23ac8b 100644
--- a/src/nvim/event/loop.h
+++ b/src/nvim/event/loop.h
@@ -52,6 +52,8 @@ typedef struct loop {
} \
} while (0)
+// -V:LOOP_PROCESS_EVENTS_UNTIL:547
+
// Poll for events until a condition or timeout
#define LOOP_PROCESS_EVENTS_UNTIL(loop, multiqueue, timeout, condition) \
do { \
diff --git a/src/nvim/event/process.c b/src/nvim/event/process.c
index f82614e7a1..7a8a39dbcf 100644
--- a/src/nvim/event/process.c
+++ b/src/nvim/event/process.c
@@ -356,7 +356,7 @@ static void flush_stream(Process *proc, Stream *stream)
}
// Stream can be closed if it is empty.
- if (num_bytes == stream->num_bytes) {
+ if (num_bytes == stream->num_bytes) { // -V547
if (stream->read_cb && !stream->did_eof) {
// Stream callback could miss EOF handling if a child keeps the stream
// open. But only send EOF if we haven't already.