fix(completion): don't add backslash in runtime completion

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 22:36:03 +08:00
parent b9a0e762f1
commit 895cb173d2
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()