From 49db98c856f6fe1e16b2322fe4f12337884b3ce7 Mon Sep 17 00:00:00 2001 From: shadmansaleh <13149513+shadmansaleh@users.noreply.github.com> Date: Sun, 28 Nov 2021 16:46:21 +0600 Subject: [PATCH] fixup: fix diff component quiting properly fixes #459 --- lua/lualine/components/diff/git_diff.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lualine/components/diff/git_diff.lua b/lua/lualine/components/diff/git_diff.lua index 997629d..964c518 100644 --- a/lua/lualine/components/diff/git_diff.lua +++ b/lua/lualine/components/diff/git_diff.lua @@ -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