Mercurial > vim
comparison src/testdir/test_options.vim @ 10938:3b82ab325d59 v8.0.0358
patch 8.0.0358: invalid memory access in C-indent code
commit https://github.com/vim/vim/commit/60629d642541a089c322e65963c0a77e5f77eb79
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Feb 23 18:08:56 2017 +0100
patch 8.0.0358: invalid memory access in C-indent code
Problem: Invalid memory access in C-indent code.
Solution: Don't go over end of empty line. (Dominique Pelle, closes https://github.com/vim/vim/issues/1492)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 23 Feb 2017 18:15:04 +0100 |
parents | a516b6c279d9 |
children | e5896de85dcf |
comparison
equal
deleted
inserted
replaced
10937:ae3832cc9a28 | 10938:3b82ab325d59 |
---|---|
131 | 131 |
132 " Check rejecting weird characters. | 132 " Check rejecting weird characters. |
133 call assert_fails("set " . a:name . "=/not&there", "E474:") | 133 call assert_fails("set " . a:name . "=/not&there", "E474:") |
134 call assert_fails("set " . a:name . "=/not>there", "E474:") | 134 call assert_fails("set " . a:name . "=/not>there", "E474:") |
135 call assert_fails("set " . a:name . "=/not.*there", "E474:") | 135 call assert_fails("set " . a:name . "=/not.*there", "E474:") |
136 endfunc | |
137 | |
138 func Test_cinkeys() | |
139 " This used to cause invalid memory access | |
140 set cindent cinkeys=0 | |
141 norm a | |
142 set cindent& cinkeys& | |
136 endfunc | 143 endfunc |
137 | 144 |
138 func Test_dictionary() | 145 func Test_dictionary() |
139 call Check_dir_option('dictionary') | 146 call Check_dir_option('dictionary') |
140 endfunc | 147 endfunc |