From 213461f03905536bd340fa8831f102c9ec6fc606 Mon Sep 17 00:00:00 2001 From: Shawon Date: Wed, 5 Mar 2025 05:46:46 +0600 Subject: [PATCH] fix(spec): Broken function values now get replaced with `nil` This is to prevent render errors --- lua/markview/spec.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/markview/spec.lua b/lua/markview/spec.lua index e0aaaf8..c050a34 100644 --- a/lua/markview/spec.lua +++ b/lua/markview/spec.lua @@ -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