annotate src/testdir/test67.in @ 8234:dc72f4a463e4 v7.4.1410

commit https://github.com/vim/vim/commit/42dd7aee41ffcc5afdbf9bb83d70e7123261cada Author: Bram Moolenaar <Bram@vim.org> Date: Tue Feb 23 22:50:12 2016 +0100 patch 7.4.1410 Problem: Leaking memory in cscope interface. Solution: Free memory when no tab is found. (Christian Brabandt)
author Christian Brabandt <cb@256bit.org>
date Tue, 23 Feb 2016 23:00:05 +0100
parents ba2ac6b5bfb9
children e5dddd764fef
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1962
ba2ac6b5bfb9 updated for version 7.2-259
vimboss
parents:
diff changeset
1 Test that groups and patterns are tested correctly when calling exists() for
ba2ac6b5bfb9 updated for version 7.2-259
vimboss
parents:
diff changeset
2 autocommands.
ba2ac6b5bfb9 updated for version 7.2-259
vimboss
parents:
diff changeset
3
ba2ac6b5bfb9 updated for version 7.2-259
vimboss
parents:
diff changeset
4 STARTTEST
ba2ac6b5bfb9 updated for version 7.2-259
vimboss
parents:
diff changeset
5 :so small.vim
ba2ac6b5bfb9 updated for version 7.2-259
vimboss
parents:
diff changeset
6 :let results=[]
ba2ac6b5bfb9 updated for version 7.2-259
vimboss
parents:
diff changeset
7 :augroup auexists
ba2ac6b5bfb9 updated for version 7.2-259
vimboss
parents:
diff changeset
8 :augroup END
ba2ac6b5bfb9 updated for version 7.2-259
vimboss
parents:
diff changeset
9 :call add(results, "##BufEnter: " . exists("##BufEnter"))
ba2ac6b5bfb9 updated for version 7.2-259
vimboss
parents:
diff changeset
10 :call add(results, "#BufEnter: " . exists("#BufEnter"))
ba2ac6b5bfb9 updated for version 7.2-259
vimboss
parents:
diff changeset
11 :au BufEnter * let g:entered=1
ba2ac6b5bfb9 updated for version 7.2-259
vimboss
parents:
diff changeset
12 :call add(results, "#BufEnter: " . exists("#BufEnter"))
ba2ac6b5bfb9 updated for version 7.2-259
vimboss
parents:
diff changeset
13 :call add(results, "#auexists#BufEnter: " . exists("#auexists#BufEnter"))
ba2ac6b5bfb9 updated for version 7.2-259
vimboss
parents:
diff changeset
14 :augroup auexists
ba2ac6b5bfb9 updated for version 7.2-259
vimboss
parents:
diff changeset
15 :au BufEnter * let g:entered=1
ba2ac6b5bfb9 updated for version 7.2-259
vimboss
parents:
diff changeset
16 :augroup END
ba2ac6b5bfb9 updated for version 7.2-259
vimboss
parents:
diff changeset
17 :call add(results, "#auexists#BufEnter: " . exists("#auexists#BufEnter"))
ba2ac6b5bfb9 updated for version 7.2-259
vimboss
parents:
diff changeset
18 :call add(results, "#BufEnter#*.test: " . exists("#BufEnter#*.test"))
ba2ac6b5bfb9 updated for version 7.2-259
vimboss
parents:
diff changeset
19 :au BufEnter *.test let g:entered=1
ba2ac6b5bfb9 updated for version 7.2-259
vimboss
parents:
diff changeset
20 :call add(results, "#BufEnter#*.test: " . exists("#BufEnter#*.test"))
ba2ac6b5bfb9 updated for version 7.2-259
vimboss
parents:
diff changeset
21 :edit testfile.test
ba2ac6b5bfb9 updated for version 7.2-259
vimboss
parents:
diff changeset
22 :call add(results, "#BufEnter#<buffer>: " . exists("#BufEnter#<buffer>"))
ba2ac6b5bfb9 updated for version 7.2-259
vimboss
parents:
diff changeset
23 :au BufEnter <buffer> let g:entered=1
ba2ac6b5bfb9 updated for version 7.2-259
vimboss
parents:
diff changeset
24 :call add(results, "#BufEnter#<buffer>: " . exists("#BufEnter#<buffer>"))
ba2ac6b5bfb9 updated for version 7.2-259
vimboss
parents:
diff changeset
25 :edit testfile2.test
ba2ac6b5bfb9 updated for version 7.2-259
vimboss
parents:
diff changeset
26 :call add(results, "#BufEnter#<buffer>: " . exists("#BufEnter#<buffer>"))
ba2ac6b5bfb9 updated for version 7.2-259
vimboss
parents:
diff changeset
27 :e test.out
ba2ac6b5bfb9 updated for version 7.2-259
vimboss
parents:
diff changeset
28 :call append(0, results)
ba2ac6b5bfb9 updated for version 7.2-259
vimboss
parents:
diff changeset
29 :$d
ba2ac6b5bfb9 updated for version 7.2-259
vimboss
parents:
diff changeset
30 :w
ba2ac6b5bfb9 updated for version 7.2-259
vimboss
parents:
diff changeset
31 :qa!
ba2ac6b5bfb9 updated for version 7.2-259
vimboss
parents:
diff changeset
32 ENDTEST
ba2ac6b5bfb9 updated for version 7.2-259
vimboss
parents:
diff changeset
33