diff options
Diffstat (limited to 'test/functional/ex_cmds/mkview_spec.lua')
-rw-r--r-- | test/functional/ex_cmds/mkview_spec.lua | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/test/functional/ex_cmds/mkview_spec.lua b/test/functional/ex_cmds/mkview_spec.lua index f71b826210..de0a4fe0ea 100644 --- a/test/functional/ex_cmds/mkview_spec.lua +++ b/test/functional/ex_cmds/mkview_spec.lua @@ -4,7 +4,7 @@ local clear = helpers.clear local command = helpers.command local get_pathsep = helpers.get_pathsep local eq = helpers.eq -local funcs = helpers.funcs +local fn = helpers.fn local rmdir = helpers.rmdir local mkdir = helpers.mkdir @@ -28,9 +28,8 @@ describe(':mkview', function() end) it('viewoption curdir restores local current directory', function() - local cwd_dir = funcs.getcwd() - local set_view_dir_command = 'set viewdir=' .. cwd_dir .. - get_pathsep() .. view_dir + local cwd_dir = fn.getcwd() + local set_view_dir_command = 'set viewdir=' .. cwd_dir .. get_pathsep() .. view_dir -- By default the local current directory should save command(set_view_dir_command) @@ -56,12 +55,11 @@ describe(':mkview', function() command('edit ' .. tmp_file_base .. '2') command('loadview') -- The view's current directory should not have changed - eq(cwd_dir, funcs.getcwd()) + eq(cwd_dir, fn.getcwd()) -- Load the view with a saved local current directory command('edit ' .. tmp_file_base .. '1') command('loadview') -- The view's local directory should have been saved - eq(cwd_dir .. get_pathsep() .. local_dir, funcs.getcwd()) + eq(cwd_dir .. get_pathsep() .. local_dir, fn.getcwd()) end) - end) |