Mercurial > vim
comparison src/testdir/test_options.vim @ 10831:e926c5a7f9bf v8.0.0305
patch 8.0.0305: invalid memory access when option has duplicate flag
commit https://github.com/vim/vim/commit/aaaf57d8a936efe420190c077e4a74041cc6c72e
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Feb 5 14:13:20 2017 +0100
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 https://github.com/vim/vim/issues/1442)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 05 Feb 2017 14:15:04 +0100 |
parents | a7da553980ee |
children | 40939b171432 |
comparison
equal
deleted
inserted
replaced
10830:fe0e00dab982 | 10831:e926c5a7f9bf |
---|---|
10 set whichwrap+=h,l | 10 set whichwrap+=h,l |
11 call assert_equal('b,s,h,l', &whichwrap) | 11 call assert_equal('b,s,h,l', &whichwrap) |
12 | 12 |
13 set whichwrap+=h,l | 13 set whichwrap+=h,l |
14 call assert_equal('b,s,h,l', &whichwrap) | 14 call assert_equal('b,s,h,l', &whichwrap) |
15 | |
16 set whichwrap=h,h | |
17 call assert_equal('h', &whichwrap) | |
18 | |
19 set whichwrap=h,h,h | |
20 call assert_equal('h', &whichwrap) | |
15 | 21 |
16 set whichwrap& | 22 set whichwrap& |
17 endfunction | 23 endfunction |
18 | 24 |
19 function Test_options() | 25 function Test_options() |