Skip to content

Commit

Permalink
fix(cmdpreview): read the variable cmdpreview in nvim-0.9+ on windo…
Browse files Browse the repository at this point in the history
…ws (#774)

* fix(cmdpreview): read the variable `cmdpreview` in nvim-0.9+ on windows

* refactor: fix small logic bug

* refactor: really fix the logic bug

* refactor: i swear, it's fixed this time
  • Loading branch information
Sam-programs authored May 3, 2024
1 parent 6df3d8a commit a35003d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/noice/util/ffi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ end
return setmetatable(M, {
__index = function(_, key)
-- HACK: cmdpreview symbol is not available on Windows
if key == "cmdpreview" and jit.os == "Windows" then
if vim.fn.has("nvim-0.9.0") ~= 1 and key == "cmdpreview" and jit.os == "Windows" then
return false
end
return M.load()[key]
Expand Down

0 comments on commit a35003d

Please sign in to comment.