comparison src/testdir/test_quickfix.vim @ 23493:f8382c4e6551 v8.2.2289

patch 8.2.2289: Vim9: 'cpo' can become empty Commit: https://github.com/vim/vim/commit/e5a2dc87fd9d63dfd0d9c379e363ee8b8c05b14c Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 3 19:52:05 2021 +0100 patch 8.2.2289: Vim9: 'cpo' can become empty Problem: Vim9: 'cpo' can become empty. Solution: Use empty_option instead of an empty string. Update quickfix buffer after restoring 'cpo'. (closes #7608)
author Bram Moolenaar <Bram@vim.org>
date Sun, 03 Jan 2021 20:00:03 +0100
parents db97415750ce
children 97296182d336
comparison
equal deleted inserted replaced
23492:27c9e319653b 23493:f8382c4e6551
700 call s:test_xhelpgrep('c') 700 call s:test_xhelpgrep('c')
701 helpclose 701 helpclose
702 call s:test_xhelpgrep('l') 702 call s:test_xhelpgrep('l')
703 endfunc 703 endfunc
704 704
705 def Test_helpgrep_vim9_restore_cpo()
706 assert_equal('aABceFs', &cpo)
707
708 var rtp_save = &rtp
709 var dir = 'Xruntime/after'
710 &rtp ..= ',' .. dir
711 mkdir(dir .. '/ftplugin', 'p')
712 writefile(['vim9'], dir .. '/ftplugin/qf.vim')
713 filetype plugin on
714 silent helpgrep grail
715 cwindow
716 silent helpgrep grail
717
718 assert_equal('aABceFs', &cpo)
719 delete(dir, 'rf')
720 &rtp = rtp_save
721 cclose
722 helpclose
723 enddef
724
705 func Test_errortitle() 725 func Test_errortitle()
706 augroup QfBufWinEnter 726 augroup QfBufWinEnter
707 au! 727 au!
708 au BufWinEnter * :let g:a=get(w:, 'quickfix_title', 'NONE') 728 au BufWinEnter * :let g:a=get(w:, 'quickfix_title', 'NONE')
709 augroup END 729 augroup END