Commit 0867870
fix(ui_select): fix E5101 if invoked through v:lua
This fixes "E5101: Cannot convert given Lua type" when invoking
vim.ui.select through v:lua-call, e.g.:
:call v:lua.vim.ui.select(["foo", "bar"], {}, luaeval('function(x) print(x) end'))
core.fzf_exec returns a tuple, the first element of which is an object
of type "thread", which can't be converted to a vimscript value. But
vim.ui.select isn't meant to return anything, so the fix is to just drop
the return — which was presumably added by accident (ui_select isn't
really a provider like the others, and isn't meant to be combined, so
doesn't need to return anything).
Fixes: 594b4f7 ("feat: combine pickers (#1879)")1 parent 1749fed commit 0867870
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
| 215 | + | |
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
0 commit comments