Mercurial > vim
view src/testdir/test_spell.vim @ 10962:6da4287fd735 v8.0.0370
patch 8.0.0370: invalid memory access when setting wildchar empty
commit https://github.com/vim/vim/commit/a12e40351d1357687e8b5dc3122fffef705bdc08
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Feb 25 21:37:57 2017 +0100
patch 8.0.0370: invalid memory access when setting wildchar empty
Problem: Invalid memory access when setting wildchar empty.
Solution: Avoid going over the end of the option value. (Dominique Pelle,
closes #1509) Make option test check all number options with
empty value.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 25 Feb 2017 21:45:04 +0100 |
parents | 2297aae8e127 |
children | a2124e9bbb6a |
line wrap: on
line source
" Test spell checking " TODO: move test58 tests here if !has('spell') finish endif func Test_wrap_search() new call setline(1, ['The', '', 'A plong line with two zpelling mistakes', '', 'End']) set spell wrapscan normal ]s call assert_equal('plong', expand('<cword>')) normal ]s call assert_equal('zpelling', expand('<cword>')) normal ]s call assert_equal('plong', expand('<cword>')) bwipe! set nospell endfunc