We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27c0d50 commit 43898f1Copy full SHA for 43898f1
lua/astroui/status/component.lua
@@ -403,8 +403,9 @@ function M.signcolumn(opts)
403
callback = function(...)
404
local args = status_utils.statuscolumn_clickargs(...)
405
if args.sign then
406
- local name = args.sign.name or args.sign.namespace
407
- local handler = config.sign_handlers[name] or config.sign_handlers[args.sign.texthl]
+ local handler = args.sign.name ~= "" and config.sign_handlers[args.sign.name]
+ if not handler then handler = config.sign_handlers[args.sign.namespace] end
408
+ if not handler then handler = config.sign_handlers[args.sign.texthl] end
409
if handler then handler(args) end
410
end
411
end,
0 commit comments