diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-07-08 23:29:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-08 23:29:24 +0800 |
commit | fbeef0d4ef1aadc4e50b9f33946cf4dca8ca6b62 (patch) | |
tree | b23befeae7113e5a559227454a5155e579bd5f69 /test/functional/lua/runtime_spec.lua | |
parent | b9a0e762f1d79d17631b7d17cf25b6e25006d8c2 (diff) | |
download | rneovim-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.lua | 5 |
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() |