diff options
author | Joshua Minor <github@pixelverse.org> | 2021-11-21 15:45:22 -0800 |
---|---|---|
committer | Joshua Minor <github@pixelverse.org> | 2021-11-21 15:45:22 -0800 |
commit | 0cbdc9d6deb298faa7503e5caa10ed4b4d95866e (patch) | |
tree | 62a7a9272c95784902b277cc39f1318c0c07ef32 /plugins/gitstatus.lua | |
parent | 1cfa26ca4c455218f399fa87669c33d2ab87af33 (diff) | |
download | lite-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.lua | 2 |
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 |