Mercurial > vim
annotate src/testdir/test_modeline.vim @ 15022:f3b4cd98944c v8.1.0522
patch 8.1.0522: :terminal does not show trailing empty lines
commit https://github.com/vim/vim/commit/f3aea59afa23304266dfd0dd26b5d8cc70a21331
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Nov 11 22:18:21 2018 +0100
patch 8.1.0522: :terminal does not show trailing empty lines
Problem: :terminal does not show trailing empty lines.
Solution: Add empty lines. (Hirohito Higashi, closes https://github.com/vim/vim/issues/3605)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 11 Nov 2018 22:30:05 +0100 |
parents | 85467d180844 |
children | 40d9218b2b12 |
rev | line source |
---|---|
14381
d9e6eec551e1
patch 8.1.0205: invalid memory access with invalid modeline
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
1 " Tests for parsing the modeline. |
d9e6eec551e1
patch 8.1.0205: invalid memory access with invalid modeline
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
2 |
14383
8846b8344430
patch 8.1.0206: duplicate test function name
Christian Brabandt <cb@256bit.org>
parents:
14381
diff
changeset
|
3 func Test_modeline_invalid() |
14989
85467d180844
patch 8.1.0506: modeline test fails when run by root
Bram Moolenaar <Bram@vim.org>
parents:
14387
diff
changeset
|
4 " This was reading allocated memory in the past. |
14381
d9e6eec551e1
patch 8.1.0205: invalid memory access with invalid modeline
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
5 call writefile(['vi:0', 'nothing'], 'Xmodeline') |
14989
85467d180844
patch 8.1.0506: modeline test fails when run by root
Bram Moolenaar <Bram@vim.org>
parents:
14387
diff
changeset
|
6 let modeline = &modeline |
85467d180844
patch 8.1.0506: modeline test fails when run by root
Bram Moolenaar <Bram@vim.org>
parents:
14387
diff
changeset
|
7 set modeline |
14381
d9e6eec551e1
patch 8.1.0205: invalid memory access with invalid modeline
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
8 call assert_fails('split Xmodeline', 'E518:') |
14989
85467d180844
patch 8.1.0506: modeline test fails when run by root
Bram Moolenaar <Bram@vim.org>
parents:
14387
diff
changeset
|
9 let &modeline = modeline |
14381
d9e6eec551e1
patch 8.1.0205: invalid memory access with invalid modeline
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
10 bwipe! |
14387
68722ba52971
patch 8.1.0208: file left behind after running individual test
Christian Brabandt <cb@256bit.org>
parents:
14383
diff
changeset
|
11 call delete('Xmodeline') |
14381
d9e6eec551e1
patch 8.1.0205: invalid memory access with invalid modeline
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
12 endfunc |