diff options
| author | Michael Ennen <mike.ennen@gmail.com> | 2016-11-24 23:39:25 -0700 |
|---|---|---|
| committer | James McCoy <jamessan@jamessan.com> | 2016-12-01 09:20:23 -0500 |
| commit | 4f3bb5262caa95a2a12d7366ef428ed5399d21c9 (patch) | |
| tree | 7ad480972da6b38bc14cb30b2ea1fbe50f07d1fb /src/nvim/testdir | |
| parent | 85f9f9f46dfc53966621c87442eed3528fb92c26 (diff) | |
| download | rneovim-4f3bb5262caa95a2a12d7366ef428ed5399d21c9.tar.gz rneovim-4f3bb5262caa95a2a12d7366ef428ed5399d21c9.tar.bz2 rneovim-4f3bb5262caa95a2a12d7366ef428ed5399d21c9.zip | |
vim-patch:7.4.1702
Problem: Using freed memory when parsing 'printoptions' fails.
Solution: Save the old options and restore them in case of an error.
(Dominique)
https://github.com/vim/vim/commit/4afc7c5d4a73340831077a02bfe1f74935e7f4a1
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_hardcopy.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_hardcopy.vim b/src/nvim/testdir/test_hardcopy.vim index 4629d17dd2..ea9790d134 100644 --- a/src/nvim/testdir/test_hardcopy.vim +++ b/src/nvim/testdir/test_hardcopy.vim @@ -23,6 +23,10 @@ func Test_printoptions_parsing() set printoptions=formfeed:y set printoptions= set printoptions& + + call assert_fails('set printoptions=paper', 'E550:') + call assert_fails('set printoptions=shredder:on', 'E551:') + call assert_fails('set printoptions=left:no', 'E552:') endfunc func Test_printmbfont_parsing() |