fixup: fix diff component quiting properly

fixes #459
This commit is contained in:
shadmansaleh 2021-11-28 16:46:21 +06:00
parent cf75e1af5a
commit 49db98c856
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ function M.update_diff_args()
end,
on_stderr = function(_, data)
data = table.concat(data, '\n')
if #data > 1 or (#data == 1 and #data[1] > 0) then
if #data > 0 then
git_diff = nil
diff_output_cache = {}
end