aboutsummaryrefslogtreecommitdiff
path: root/plugins/gitstatus.lua
diff options
context:
space:
mode:
authorJoshua Minor <github@pixelverse.org>2021-11-21 15:45:22 -0800
committerJoshua Minor <github@pixelverse.org>2021-11-21 15:45:22 -0800
commit0cbdc9d6deb298faa7503e5caa10ed4b4d95866e (patch)
tree62a7a9272c95784902b277cc39f1318c0c07ef32 /plugins/gitstatus.lua
parent1cfa26ca4c455218f399fa87669c33d2ab87af33 (diff)
downloadlite-xl-plugins-0cbdc9d6deb298faa7503e5caa10ed4b4d95866e.tar.gz
lite-xl-plugins-0cbdc9d6deb298faa7503e5caa10ed4b4d95866e.zip
Guard against nil response.
Diffstat (limited to 'plugins/gitstatus.lua')
-rw-r--r--plugins/gitstatus.lua2
1 files changed, 1 insertions, 1 deletions
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