Problem: The mode test may hang in Test_mode(). (Michael Soyka)
Solution: Set 'complete' to only search the current buffer (as suggested by
Michael)
" Tests for the mode() function
let current_modes = ''
-func! Save_mode()
+func Save_mode()
let g:current_modes = mode(0) . '-' . mode(1)
return ''
endfunc
-func! Test_mode()
+func Test_mode()
new
call append(0, ["Blue Ball Black", "Brown Band Bowl", ""])
+ " Only complete from the current buffer.
+ set complete=.
+
inoremap <F2> <C-R>=Save_mode()<CR>
normal! 3G
bwipe!
iunmap <F2>
+ set complete&
endfunc
func Test_getbufvar()
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 455,
/**/
454,
/**/