annotate src/testdir/test54.in @ 8861:45fe799c9672 v7.4.1718

commit https://github.com/vim/vim/commit/d56374e25df0b317b01423a01f158157faa647fa Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 7 22:16:30 2016 +0200 patch 7.4.1718 Problem: Coverity: not using return value of set_ref_in_item(). Solution: Use the return value.
author Christian Brabandt <cb@256bit.org>
date Thu, 07 Apr 2016 22:30:05 +0200
parents 71eaeb69efe4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
40
f1d2a58883b9 updated for version 7.0024
vimboss
parents:
diff changeset
1 Some tests for buffer-local autocommands
f1d2a58883b9 updated for version 7.0024
vimboss
parents:
diff changeset
2
f1d2a58883b9 updated for version 7.0024
vimboss
parents:
diff changeset
3 STARTTEST
f1d2a58883b9 updated for version 7.0024
vimboss
parents:
diff changeset
4 :so small.vim
f1d2a58883b9 updated for version 7.0024
vimboss
parents:
diff changeset
5 :e xx
1709
71eaeb69efe4 updated for version 7.2-007
vimboss
parents: 51
diff changeset
6 :if has("vms")
71eaeb69efe4 updated for version 7.2-007
vimboss
parents: 51
diff changeset
7 : !del test.out.*
71eaeb69efe4 updated for version 7.2-007
vimboss
parents: 51
diff changeset
8 : au BufLeave <buffer> :!write sys$output "buffer-local autommand in %" > test.out
71eaeb69efe4 updated for version 7.2-007
vimboss
parents: 51
diff changeset
9 :else
71eaeb69efe4 updated for version 7.2-007
vimboss
parents: 51
diff changeset
10 : !rm -f test.out
71eaeb69efe4 updated for version 7.2-007
vimboss
parents: 51
diff changeset
11 : au BufLeave <buffer> :!echo buffer-local autommand in %>> test.out
71eaeb69efe4 updated for version 7.2-007
vimboss
parents: 51
diff changeset
12 :endif
40
f1d2a58883b9 updated for version 7.0024
vimboss
parents:
diff changeset
13 :e somefile " here, autocommand for xx shall write test.out
f1d2a58883b9 updated for version 7.0024
vimboss
parents:
diff changeset
14 : " but autocommand shall not apply to buffer named <buffer>
f1d2a58883b9 updated for version 7.0024
vimboss
parents:
diff changeset
15 :bwipe xx " here, autocommand shall be auto-deleted
f1d2a58883b9 updated for version 7.0024
vimboss
parents:
diff changeset
16 :e xx " nothing shall be written
f1d2a58883b9 updated for version 7.0024
vimboss
parents:
diff changeset
17 :e somefile " nothing shall be written
f1d2a58883b9 updated for version 7.0024
vimboss
parents:
diff changeset
18 :qa!
f1d2a58883b9 updated for version 7.0024
vimboss
parents:
diff changeset
19 ENDTEST
f1d2a58883b9 updated for version 7.0024
vimboss
parents:
diff changeset
20
f1d2a58883b9 updated for version 7.0024
vimboss
parents:
diff changeset
21 start of test file xx
f1d2a58883b9 updated for version 7.0024
vimboss
parents:
diff changeset
22 end of test file xx