comparison src/testdir/test_autocmd.vim @ 15406:63b02fcf1361 v8.1.0711

patch 8.1.0711: test files still use function! commit https://github.com/vim/vim/commit/1e1153600c0377472d62cc553173fe555ddcf5a7 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jan 9 23:01:02 2019 +0100 patch 8.1.0711: test files still use function! Problem: Test files still use function!. Solution: Remove the exclamation mark. Fix overwriting a function.
author Bram Moolenaar <Bram@vim.org>
date Wed, 09 Jan 2019 23:15:05 +0100
parents 6ab9c18708c4
children bfcd7ffe9ac2
comparison
equal deleted inserted replaced
15405:3a8785d45112 15406:63b02fcf1361
1 " Tests for autocommands 1 " Tests for autocommands
2 2
3 source shared.vim 3 source shared.vim
4 4
5 func! s:cleanup_buffers() abort 5 func s:cleanup_buffers() abort
6 for bnr in range(1, bufnr('$')) 6 for bnr in range(1, bufnr('$'))
7 if bufloaded(bnr) && bufnr('%') != bnr 7 if bufloaded(bnr) && bufnr('%') != bnr
8 execute 'bd! ' . bnr 8 execute 'bd! ' . bnr
9 endif 9 endif
10 endfor 10 endfor
1341 1341
1342 bw! 1342 bw!
1343 endfunc 1343 endfunc
1344 1344
1345 let g:setline_handled = v:false 1345 let g:setline_handled = v:false
1346 func! SetLineOne() 1346 func SetLineOne()
1347 if !g:setline_handled 1347 if !g:setline_handled
1348 call setline(1, "(x)") 1348 call setline(1, "(x)")
1349 let g:setline_handled = v:true 1349 let g:setline_handled = v:true
1350 endif 1350 endif
1351 endfunc 1351 endfunc