From e134cc9d4a13034401a1323e0515ceb19d43dfea Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 8 Jun 2019 11:35:53 +0200 Subject: vim-patch:8.0.1738: ":args" output is hard to read Problem: ":args" output is hard to read. Solution: Make columns with the names if the output is more than one line. https://github.com/vim/vim/commit/5d69da462f584a3aefb3427b127334bf9af3a4b0 vim-patch:8.0.1740: warning for signed-unsigned incompatibility Problem: Warning for signed-unsigned incompatibility. Solution: Change type from "char *" to "char_u *". (John Marriott) https://github.com/vim/vim/commit/405dadb63ea2b7aa4c8c659807506a35a8a9504c Removes ported legacy test that was re-added later. Ref: https://github.com/neovim/neovim/pull/10147#issuecomment-512609513 --- test/functional/legacy/arglist_spec.lua | 68 --------------------------------- 1 file changed, 68 deletions(-) (limited to 'test') diff --git a/test/functional/legacy/arglist_spec.lua b/test/functional/legacy/arglist_spec.lua index bd65e549ef..241a19d940 100644 --- a/test/functional/legacy/arglist_spec.lua +++ b/test/functional/legacy/arglist_spec.lua @@ -92,74 +92,6 @@ describe('argument list commands', function() eq(0, eval('len(argv())')) end) - it('test for [count]argument and [count]argdelete commands', function() - reset_arglist() - command('let save_hidden = &hidden') - command('set hidden') - command('let g:buffers = []') - command('augroup TEST') - command([[au BufEnter * call add(buffers, expand('%:t'))]]) - command('augroup END') - - command('argadd a b c d') - command('$argu') - command('$-argu') - command('-argu') - command('1argu') - command('+2argu') - - command('augroup TEST') - command('au!') - command('augroup END') - - eq({'d', 'c', 'b', 'a', 'c'}, eval('g:buffers')) - - command('redir => result') - command('ar') - command('redir END') - eq(1, eval([[result =~# 'a b \[c] d']])) - - command('.argd') - eq({'a', 'b', 'd'}, eval('argv()')) - - command('-argd') - eq({'a', 'd'}, eval('argv()')) - - command('$argd') - eq({'a'}, eval('argv()')) - - command('1arga c') - command('1arga b') - command('$argu') - command('$arga x') - eq({'a', 'b', 'c', 'x'}, eval('argv()')) - - command('0arga Y') - eq({'Y', 'a', 'b', 'c', 'x'}, eval('argv()')) - - command('%argd') - eq({}, eval('argv()')) - - command('arga a b c d e f') - command('2,$-argd') - eq({'a', 'f'}, eval('argv()')) - - command('let &hidden = save_hidden') - - -- Setting the argument list should fail when the current buffer has - -- unsaved changes - command('%argd') - command('enew!') - command('set modified') - assert_fails('args x y z', 'E37:') - command('args! x y z') - eq({'x', 'y', 'z'}, eval('argv()')) - eq('x', eval('expand("%:t")')) - - command('%argdelete') - assert_fails('argument', 'E163:') - end) - it('test for 0argadd and 0argedit', function() reset_arglist() -- cgit