fix(filesets): Correclty escape filesets in different commands to avoid

special characters breaking jj's parsing
This commit is contained in:
NicolasGB
2026-06-30 12:45:40 +02:00
committed by Nicolas GB
parent db06e9a73c
commit c724290141
5 changed files with 31 additions and 10 deletions
+2 -3
View File
@@ -25,7 +25,7 @@ local function build_split_command(opts)
if opts.filesets then
for _, fileset in ipairs(opts.filesets) do
table.insert(args, fileset)
table.insert(args, utils.escape_fileset(fileset))
end
end
@@ -39,8 +39,7 @@ function M.split(opts)
return
end
local cmd_mod = require("jj.cmd")
opts = vim.tbl_deep_extend("force", cmd_mod.config.split or {}, opts or {}) --[[@as jj.cmd.split.opts]]
opts = opts or {} --[[@as jj.cmd.split.opts]]
-- If it's empty do nothing
if utils.is_change_empty(opts.rev or "@") then