aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/runtime_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-07-08 23:29:24 +0800
committerGitHub <noreply@github.com>2023-07-08 23:29:24 +0800
commitfbeef0d4ef1aadc4e50b9f33946cf4dca8ca6b62 (patch)
treeb23befeae7113e5a559227454a5155e579bd5f69 /test/functional/lua/runtime_spec.lua
parentb9a0e762f1d79d17631b7d17cf25b6e25006d8c2 (diff)
downloadrneovim-fbeef0d4ef1aadc4e50b9f33946cf4dca8ca6b62.tar.gz
rneovim-fbeef0d4ef1aadc4e50b9f33946cf4dca8ca6b62.tar.bz2
rneovim-fbeef0d4ef1aadc4e50b9f33946cf4dca8ca6b62.zip
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.
Diffstat (limited to 'test/functional/lua/runtime_spec.lua')
-rw-r--r--test/functional/lua/runtime_spec.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/functional/lua/runtime_spec.lua b/test/functional/lua/runtime_spec.lua
index e80a65ef3d..7d3d640265 100644
--- a/test/functional/lua/runtime_spec.lua
+++ b/test/functional/lua/runtime_spec.lua
@@ -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()