annotate src/testdir/test4.in @ 10906:7fc1df5536c9 v8.0.0342

patch 8.0.0342: double free with EXITFREE and setting 'ttytype' commit https://github.com/vim/vim/commit/673911457d6745b6b779eb769c2f41965592d12c Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 19 21:07:04 2017 +0100 patch 8.0.0342: double free with EXITFREE and setting 'ttytype' Problem: Double free when compiled with EXITFREE and setting 'ttytype'. Solution: Avoid setting P_ALLOCED on 'ttytype'. (Dominique Pelle, closes #1461)
author Christian Brabandt <cb@256bit.org>
date Sun, 19 Feb 2017 21:15:04 +0100
parents bc269cf15ccd
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 Test for autocommand that changes current buffer on BufEnter event.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 Check if modelines are interpreted for the correct buffer.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 :so small.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 :set nocompatible viminfo+=nviminfo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 :au BufEnter Xxx brew
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 /start of
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 :.,/end of/w! Xxx " write test file Xxx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 :set ai modeline modelines=3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 :sp Xxx " split to Xxx, autocmd will do :brew
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 G?this is a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 othis should be auto-indented
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 : " Append text with autoindent to this file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 :au! BufEnter Xxx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 :buf Xxx " go to Xxx, no autocmd anymore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 G?this is a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 othis should be in column 1:wq " append text without autoindent to Xxx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 G:r Xxx " include Xxx in the current file
6318
5e998fc610d5 updated for version 7.4.492
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
20 :set fo+=r " issue #57 do not move cursor on <c-o> when autoindent is set
5e998fc610d5 updated for version 7.4.492
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
21 Go# abcdef2hi
7003
bc269cf15ccd patch 7.4.819
Bram Moolenaar <bram@vim.org>
parents: 6318
diff changeset
22 d0o# abcdef2hid0:
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 :?startstart?,$w! test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 :qa!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 startstart
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 start of test file Xxx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 vim: set noai :
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 this is a test
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 this is a test
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 this is a test
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 this is a test
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 end of test file Xxx