You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I ran this code, I got an error below.
```lua
async.util.block_on(function()
async.util.sleep(4000)
end)
print "done"
```
```bash
E5113: Error while calling lua chunk: /tmp/hoge.lua:4: bad argument #1 to 'block_on' (table expected, got nil)
stack traceback:
[C]: in function 'block_on'
/tmp/hoge.lua:4: in main chunk
```
This means the func is terminated by `vim.wait` and the variable `ret`
is still `nil`. So `unpack(ret)` raises an error.
This PR fixes this bug by setting a default value for `ret`.
0 commit comments