fix(completion): don't add backslashes to runtime pattern (#24296)

Problem:    Bashslashes added as regexp in runtime completion may be
            treated as path separator with some 'isfname' value.
Solution:   Make curly braces work for runtime completion and use it.
This commit is contained in:
zeertzjq
2023-07-08 23:29:24 +08:00
committed by GitHub
parent b9a0e762f1
commit fbeef0d4ef
3 changed files with 13 additions and 6 deletions

View File

@@ -18,7 +18,10 @@ describe('runtime:', function()
io.open(init, 'w'):close() -- touch init file
clear{args = {'-u', init}}
exec('set rtp+=' .. plug_dir)
exec('set completeslash=slash')
exec([[
set completeslash=slash
set isfname+=(,)
]])
end)
teardown(function()