Skip to content

Commit

Permalink
Merge pull request #19 from hasundue/main
Browse files Browse the repository at this point in the history
fix(lua): treat `load_state` as a boolean function
  • Loading branch information
Shougo committed Mar 4, 2024
2 parents f732da6 + 3c7701d commit c09f7ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/dpp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ local M = setmetatable({}, {
local ret = vim.call('dpp#' .. key, ...)

-- NOTE: For boolean functions
if type(ret) ~= 'table' and (vim.startswith(key, 'check_') or vim.startswith(key, 'is_')) then
if type(ret) ~= 'table' and (vim.startswith(key, 'check_') or vim.startswith(key, 'is_')) or key == 'min#load_state' then
ret = ret ~= 0
end

Expand Down

0 comments on commit c09f7ba

Please sign in to comment.