Skip to content

Commit

Permalink
Guard against nil response.
Browse files Browse the repository at this point in the history
  • Loading branch information
jminor committed Nov 21, 2021
1 parent 1cfa26c commit 0cbdc9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/gitstatus.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 0cbdc9d

Please sign in to comment.