Skip to content

Commit f303c7c

Browse files
committed
fix: process all data on_output, even when not terminated with newline
The current condition prematurely quits processing of data in on_output in some edge-cases. In these cases `job:result()` will have all data, but not everyting was sent through the `on_output` pipes. Closes #634
1 parent 2d9b061 commit f303c7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/plenary/job.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ local on_output = function(self, result_key, cb)
361361
cb(err, result_line, self)
362362
end
363363

364-
if data == nil or is_complete then
364+
if is_complete then
365365
return
366366
end
367367

0 commit comments

Comments
 (0)