comparison src/testdir/test_quickfix.vim @ 27601:cb46dd386990 v8.2.4327

patch 8.2.4327: may end up with no current buffer Commit: https://github.com/vim/vim/commit/e3537aec2f8d6470010547af28dcbd83d41461b8 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Feb 8 15:05:20 2022 +0000 patch 8.2.4327: may end up with no current buffer Problem: May end up with no current buffer. Solution: When deleting the current buffer to not pick a quickfix buffer as the new current buffer.
author Bram Moolenaar <Bram@vim.org>
date Tue, 08 Feb 2022 16:15:03 +0100
parents b8a5de86e9d1
children bf540a32439a
comparison
equal deleted inserted replaced
27600:6e3d83368cdb 27601:cb46dd386990
5849 cal R() 5849 cal R()
5850 bw! 5850 bw!
5851 delfunc R 5851 delfunc R
5852 endfunc 5852 endfunc
5853 5853
5854 " Another sequence of commands that caused all buffers to be wiped out
5855 func Test_lopen_bwipe_all()
5856 let lines =<< trim END
5857 func R()
5858 silent! tab lopen
5859 e foo
5860 silent! lfile
5861 endfunc
5862 cal R()
5863 exe "norm \<C-W>\<C-V>0"
5864 cal R()
5865 bwipe
5866
5867 call writefile(['done'], 'Xresult')
5868 qall!
5869 END
5870 call writefile(lines, 'Xscript')
5871 if RunVim([], [], '-u NONE -n -X -Z -e -m -s -S Xscript')
5872 call assert_equal(['done'], readfile('Xresult'))
5873 endif
5874
5875 call delete('Xscript')
5876 call delete('Xresult')
5877 endfunc
5878
5854 5879
5855 " vim: shiftwidth=2 sts=2 expandtab 5880 " vim: shiftwidth=2 sts=2 expandtab