Skip to content

Commit

Permalink
fix(spec): Broken function values now get replaced with nil
Browse files Browse the repository at this point in the history
This is to prevent render errors
  • Loading branch information
OXY2DEV committed Mar 4, 2025
1 parent b990eaa commit 213461f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/markview/spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3407,10 +3407,10 @@ spec.get = function (keys, opts)
---@diagnostic disable
if pcall(val, unpack(args)) then
return val(unpack(args));
else
return nil;
end
---@diagnostic enable

return val;
---_
end

Expand Down

0 comments on commit 213461f

Please sign in to comment.