From 35296a8efaba6fb4d83372affcdb801e77f77120 Mon Sep 17 00:00:00 2001 From: Chris Antos Date: Sat, 18 Nov 2023 17:27:21 -0800 Subject: [PATCH] Fix quoting colortool scheme name completions. --- completions/colortool.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/completions/colortool.lua b/completions/colortool.lua index e7ae342..1166830 100644 --- a/completions/colortool.lua +++ b/completions/colortool.lua @@ -25,8 +25,15 @@ local function init_themes(argmatcher, argindex) -- luacheck: no unused return matches end +local function forcequoting(_, _, _, builder) + if builder.setforcequoting then + builder:setforcequoting() + end + return {} +end + local function closure(argmatcher) - argmatcher:addarg({delayinit=init_themes}) + argmatcher:addarg({delayinit=init_themes, forcequoting}) argmatcher:nofiles() end