aboutsummaryrefslogtreecommitdiff
path: root/test/functional/core/fileio_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2024-04-21 18:04:21 -0700
committerGitHub <noreply@github.com>2024-04-21 18:04:21 -0700
commit2088521263d3bf9cfd23729adb1a7d152eaab104 (patch)
tree6c153f0c1d1ff1ebc36a466e904c933ccee18b28 /test/functional/core/fileio_spec.lua
parent35e38833c54565b05a0c33ba44694fc1077dce97 (diff)
parentf112ac73bd340707173db4d28660e76aa96b36de (diff)
downloadrneovim-2088521263d3bf9cfd23729adb1a7d152eaab104.tar.gz
rneovim-2088521263d3bf9cfd23729adb1a7d152eaab104.tar.bz2
rneovim-2088521263d3bf9cfd23729adb1a7d152eaab104.zip
Merge #28450 deprecate tbl_flatten
Diffstat (limited to 'test/functional/core/fileio_spec.lua')
-rw-r--r--test/functional/core/fileio_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/core/fileio_spec.lua b/test/functional/core/fileio_spec.lua
index 04d745a6c3..349f79e316 100644
--- a/test/functional/core/fileio_spec.lua
+++ b/test/functional/core/fileio_spec.lua
@@ -54,7 +54,7 @@ describe('fileio', function()
--- Starts a new nvim session and returns an attached screen.
local function startup(extra_args)
extra_args = extra_args or {}
- local argv = vim.tbl_flatten({ args, '--embed', extra_args })
+ local argv = vim.iter({ args, '--embed', extra_args }):flatten():totable()
local screen_nvim = spawn(argv)
set_session(screen_nvim)
local screen = Screen.new(70, 10)
@@ -100,7 +100,7 @@ describe('fileio', function()
eq('foozubbaz', trim(read_file('Xtest_startup_file1')))
-- 4. Exit caused by deadly signal (+ 'swapfile').
- local j = fn.jobstart(vim.tbl_flatten({ args, '--embed' }), { rpc = true })
+ local j = fn.jobstart(vim.iter({ args, '--embed' }):flatten():totable(), { rpc = true })
fn.rpcrequest(
j,
'nvim_exec2',