Mercurial > vim
view src/testdir/test_spell.vim @ 11199:e08ead1d269f v8.0.0486
patch 8.0.0486: crash and endless loop when closing windows in autocmd
commit https://github.com/vim/vim/commit/8c752bd6c4af54c0b7bac35a39acc2bf16015f85
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Mar 19 17:09:56 2017 +0100
patch 8.0.0486: crash and endless loop when closing windows in autocmd
Problem: Crash and endless loop when closing windows in a SessionLoadPost
autocommand.
Solution: Check for valid tabpage. (partly neovim #6308)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 19 Mar 2017 17:15:05 +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