Skip to content

Commit

Permalink
Fix version check
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Sep 6, 2021
1 parent e3332ef commit a716897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/candidates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ local api = vim.api
local get_candidates = function(_, arg1, arg2)
-- For neovim 0.6 breaking changes
-- https://github.com/neovim/neovim/pull/15504
local result = vim.fn.has('nvim-0.6') and arg1 or arg2
local result = vim.fn.has('nvim-0.6') == 1 and arg1 or arg2
if not result or result == 0 then
return
end
Expand Down

0 comments on commit a716897

Please sign in to comment.