Skip to content

Commit

Permalink
fix: dont check cmdpreview on windows. Fixes #229
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Nov 17, 2022
1 parent eb6c4ef commit b10bbbb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/noice/util/ffi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ end

return setmetatable(M, {
__index = function(_, key)
-- HACK: cmdpreview symbol is not available on Windows
if key == "cmdpreview" and jit.os == "Windows" then
return false
end
return M.load()[key]
end,
__newindex = function(_, k, v)
Expand Down

0 comments on commit b10bbbb

Please sign in to comment.