aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKurt Bonatz <Kurt-Bonatz@users.noreply.github.com>2017-02-15 02:12:31 -0800
committerJustin M. Keyes <justinkz@gmail.com>2017-02-15 11:12:31 +0100
commit0e44916fff882de6db6f0e98438e8db04293471e (patch)
tree22103e44d36cb0d3c58111a3dffb21a7ca6396bc /test
parent64c375c589437b811027c5602ecd3969edc162cb (diff)
downloadrneovim-0e44916fff882de6db6f0e98438e8db04293471e.tar.gz
rneovim-0e44916fff882de6db6f0e98438e8db04293471e.tar.bz2
rneovim-0e44916fff882de6db6f0e98438e8db04293471e.zip
ex_docmd.c: Allow unescaped spaces in :edit filename (#6119)
This makes :edit consistent on all platforms. Also affects :argedit, et al. Wild (tab) completion doesn't work, though. Closes #6010
Diffstat (limited to 'test')
-rw-r--r--test/functional/legacy/arglist_spec.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/functional/legacy/arglist_spec.lua b/test/functional/legacy/arglist_spec.lua
index b86d3f0aea..f5e3522972 100644
--- a/test/functional/legacy/arglist_spec.lua
+++ b/test/functional/legacy/arglist_spec.lua
@@ -222,7 +222,6 @@ describe('argument list commands', function()
execute('argedit a')
eq({'a', 'b'}, eval('argv()'))
eq('a', eval('expand("%:t")'))
- assert_fails('argedit a b', 'E172:')
execute('argedit c')
eq({'a', 'c', 'b'}, eval('argv()'))
execute('0argedit x')
@@ -232,6 +231,9 @@ describe('argument list commands', function()
execute('argedit! y')
eq({'x', 'y', 'a', 'c', 'b'}, eval('argv()'))
execute('%argd')
+ -- Nvim allows unescaped spaces in filename on all platforms. #6010
+ execute('argedit a b')
+ eq({'a b'}, eval('argv()'))
end)
it('test for :argdelete command', function()