diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-05-18 16:00:06 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-05-18 21:07:30 +0200 |
commit | 9d7aaf7149a5543b1ddfc89fb506a1019bec3ffb (patch) | |
tree | 7e2183f0b19b705484b1ec5edb9d9230cb0465a7 /test/functional/options/defaults_spec.lua | |
parent | fd04877eb087b64d744a20db643f3abd630c70aa (diff) | |
download | rneovim-9d7aaf7149a5543b1ddfc89fb506a1019bec3ffb.tar.gz rneovim-9d7aaf7149a5543b1ddfc89fb506a1019bec3ffb.tar.bz2 rneovim-9d7aaf7149a5543b1ddfc89fb506a1019bec3ffb.zip |
lua/shared: move table util funcs to vim.shared
Use `tbl_` prefix for all table-util functions. Specify in the function
docstring if it expects a list-like or map-like table.
Diffstat (limited to 'test/functional/options/defaults_spec.lua')
-rw-r--r-- | test/functional/options/defaults_spec.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/options/defaults_spec.lua b/test/functional/options/defaults_spec.lua index 9ff2666ad4..415b526051 100644 --- a/test/functional/options/defaults_spec.lua +++ b/test/functional/options/defaults_spec.lua @@ -15,7 +15,7 @@ local neq = helpers.neq local mkdir = helpers.mkdir local rmdir = helpers.rmdir local alter_slashes = helpers.alter_slashes -local table_contains = helpers.table_contains +local tbl_contains = helpers.tbl_contains describe('startup defaults', function() describe(':filetype', function() @@ -261,7 +261,7 @@ describe('XDG-based defaults', function() for _,v in ipairs(rtp) do local m = string.match(v, [=[[/\]nvim[^/\]*[/\]site.*$]=]) - if m and not table_contains(rv, m) then + if m and not tbl_contains(rv, m) then table.insert(rv, m) end end |