annotate src/testdir/test_argument_count.in @ 6999:dc1b678f0e4e v7.4.817

patch 7.4.817 Problem: Invalid memory access in file_pat_to_reg_pat(). Solution: Use vim_isspace() instead of checking for a space only. (Dominique Pelle)
author Bram Moolenaar <bram@vim.org>
date Tue, 11 Aug 2015 16:20:05 +0200
parents 22f95a018b13
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6408
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 Tests for :[count]argument! and :[count]argdelete vim: set ft=vim :
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 STARTTEST
6409
83c5fd1b55bc updated for version 7.4.535
Bram Moolenaar <bram@vim.org>
parents: 6408
diff changeset
4 :so small.vim
6408
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5 :%argd
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6 :argadd a b c d
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7 :set hidden
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8 :let buffers = []
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 :augroup TEST
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 :au BufEnter * call add(buffers, expand('%:t'))
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 :augroup END
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12 :$argu
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13 :$-argu
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
14 :-argu
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
15 :1argu
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
16 :+2argu
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
17 :augroup TEST
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
18 :au!
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
19 :augroup END
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
20 :let arglists = []
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21 :.argd
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22 :call add(arglists, argv())
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
23 :-argd
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
24 :call add(arglists, argv())
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
25 :$argd
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
26 :call add(arglists, argv())
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
27 :1arga c
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
28 :1arga b
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
29 :$argu
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
30 :$arga x
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
31 :call add(arglists, argv())
6472
22f95a018b13 updated for version 7.4.565
Bram Moolenaar <bram@vim.org>
parents: 6409
diff changeset
32 :0arga Y
6408
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
33 :call add(arglists, argv())
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
34 :%argd
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
35 :call add(arglists, argv())
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
36 :arga a b c d e f
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
37 :2,$-argd
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
38 :call add(arglists, argv())
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
39 :e! test.out
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
40 :call append(0, buffers)
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
41 :let lnr = line('$')
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
42 :call append(lnr, map(copy(arglists), 'join(v:val, " ")'))
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
43 :w
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
44 :qa!
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
45 ENDTEST
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
46
1e6d87a36dcd Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
47