diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-02-05 14:13:20 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-02-05 14:13:20 +0100 |
commit | aaaf57d8a936efe420190c077e4a74041cc6c72e (patch) | |
tree | 3c434fd48844736ed55f5ee05d9c4b5fc777a744 /src/testdir | |
parent | 1fb0d49803b4f57025ed6a43b1f5b9eb91524645 (diff) | |
download | vim-aaaf57d8a936efe420190c077e4a74041cc6c72e.zip |
patch 8.0.0305: invalid memory access when option has duplicate flag
Problem: Invalid memory access when option has duplicate flag.
Solution: Correct pointer computation. (Dominique Pelle, closes #1442)
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_options.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/testdir/test_options.vim b/src/testdir/test_options.vim index bfa942715..ce59ae11b 100644 --- a/src/testdir/test_options.vim +++ b/src/testdir/test_options.vim @@ -13,6 +13,12 @@ function! Test_whichwrap() set whichwrap+=h,l call assert_equal('b,s,h,l', &whichwrap) + set whichwrap=h,h + call assert_equal('h', &whichwrap) + + set whichwrap=h,h,h + call assert_equal('h', &whichwrap) + set whichwrap& endfunction |