From 0cbdc9d6deb298faa7503e5caa10ed4b4d95866e Mon Sep 17 00:00:00 2001 From: Joshua Minor Date: Sun, 21 Nov 2021 15:45:22 -0800 Subject: Guard against nil response. --- plugins/gitstatus.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/gitstatus.lua b/plugins/gitstatus.lua index 2578862..de5c74b 100644 --- a/plugins/gitstatus.lua +++ b/plugins/gitstatus.lua @@ -42,7 +42,7 @@ local function exec(cmd) while proc:running() do coroutine.yield(0.1) end - return proc:read_stdout() + return proc:read_stdout() or "" end -- cgit v1.2.3