Mercurial > vim
annotate src/testdir/setup.vim @ 10646:8cff35d5f5dc v8.0.0213
patch 8.0.0213: Netbeans specialKeys command does not check argument length
commit https://github.com/vim/vim/commit/ca24e2cfcfd3f064ea1674886e3dcaa8254ad8d7
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 22 15:19:22 2017 +0100
patch 8.0.0213: Netbeans specialKeys command does not check argument length
Problem: The Netbeans "specialKeys" command does not check if the argument
fits in the buffer. (Coverity)
Solution: Add a length check.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 22 Jan 2017 15:30:04 +0100 |
parents | 60a06c331524 |
children | bcab4e804c20 |
rev | line source |
---|---|
9501
f0201deac2a2
commit https://github.com/vim/vim/commit/89b10421ca1aea55acbafac1df93be4e20210ceb
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
1 " Common preparations for running tests. |
f0201deac2a2
commit https://github.com/vim/vim/commit/89b10421ca1aea55acbafac1df93be4e20210ceb
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
2 |
9778
4360b2b46125
commit https://github.com/vim/vim/commit/66459b7c98c67f8a9d39de8f08e8e8f1fca0e359
Christian Brabandt <cb@256bit.org>
parents:
9501
diff
changeset
|
3 " Make sure 'runtimepath' and 'packpath' does not include $HOME. |
9501
f0201deac2a2
commit https://github.com/vim/vim/commit/89b10421ca1aea55acbafac1df93be4e20210ceb
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
4 set rtp=$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after |
9784
60a06c331524
commit https://github.com/vim/vim/commit/c96a2f3b887d9a1f850f0dacc92616bee11f966b
Christian Brabandt <cb@256bit.org>
parents:
9778
diff
changeset
|
5 if has('packages') |
60a06c331524
commit https://github.com/vim/vim/commit/c96a2f3b887d9a1f850f0dacc92616bee11f966b
Christian Brabandt <cb@256bit.org>
parents:
9778
diff
changeset
|
6 let &packpath = &rtp |
60a06c331524
commit https://github.com/vim/vim/commit/c96a2f3b887d9a1f850f0dacc92616bee11f966b
Christian Brabandt <cb@256bit.org>
parents:
9778
diff
changeset
|
7 endif |
9501
f0201deac2a2
commit https://github.com/vim/vim/commit/89b10421ca1aea55acbafac1df93be4e20210ceb
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
8 |
f0201deac2a2
commit https://github.com/vim/vim/commit/89b10421ca1aea55acbafac1df93be4e20210ceb
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
9 " Only when the +eval feature is present. |
f0201deac2a2
commit https://github.com/vim/vim/commit/89b10421ca1aea55acbafac1df93be4e20210ceb
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
10 if 1 |
f0201deac2a2
commit https://github.com/vim/vim/commit/89b10421ca1aea55acbafac1df93be4e20210ceb
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
11 " Make sure $HOME does not get read or written. |
f0201deac2a2
commit https://github.com/vim/vim/commit/89b10421ca1aea55acbafac1df93be4e20210ceb
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
12 let $HOME = '/does/not/exist' |
f0201deac2a2
commit https://github.com/vim/vim/commit/89b10421ca1aea55acbafac1df93be4e20210ceb
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
13 endif |
f0201deac2a2
commit https://github.com/vim/vim/commit/89b10421ca1aea55acbafac1df93be4e20210ceb
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
14 |