aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorKunMing Xie <qqzz014@gmail.com>2017-09-18 01:43:45 +0800
committerJustin M. Keyes <justinkz@gmail.com>2017-09-17 19:43:45 +0200
commite53af2b1f50c4662698f4a7c42a6008955a73426 (patch)
treeebe63dc9d1ce97554dbdcf3647447a8b82381cb2 /src/nvim/testdir
parent9d6bac3219a0cc1647b560b0d28b0a3fce9dc96a (diff)
downloadrneovim-e53af2b1f50c4662698f4a7c42a6008955a73426.tar.gz
rneovim-e53af2b1f50c4662698f4a7c42a6008955a73426.tar.bz2
rneovim-e53af2b1f50c4662698f4a7c42a6008955a73426.zip
vim-patch:8.0.0305 (#7265)
Problem: Invalid memory access when option has duplicate flag. Solution: Correct pointer computation. (Dominique Pelle, closes vim/vim#1442) https://github.com/vim/vim/commit/aaaf57d8a936efe420190c077e4a74041cc6c72e
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_options.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_options.vim b/src/nvim/testdir/test_options.vim
index 5ee0919e18..2ffe63787b 100644
--- a/src/nvim/testdir/test_options.vim
+++ b/src/nvim/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