comparison src/testdir/test_cmdline.vim @ 25654:ef38fc02faaa v8.2.3363

patch 8.2.3363: when :edit reuses the current buffer the alternate file is set Commit: https://github.com/vim/vim/commit/b8bd2e6ebab03baf2672067067a599df69a278c0 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 21 17:13:14 2021 +0200 patch 8.2.3363: when :edit reuses the current buffer the alternate file is set Problem: When :edit reuses the current buffer the alternate file is set to the same buffer. Solution: Only set the alternate file when not reusing the buffer. (closes #8783)
author Bram Moolenaar <Bram@vim.org>
date Sat, 21 Aug 2021 17:15:03 +0200
parents 46e2b5f66800
children 17ba70005a2e
comparison
equal deleted inserted replaced
25653:dc3b761cc059 25654:ef38fc02faaa
1363 endfunc 1363 endfunc
1364 1364
1365 " Test for expanding special keywords in cmdline 1365 " Test for expanding special keywords in cmdline
1366 func Test_cmdline_expand_special() 1366 func Test_cmdline_expand_special()
1367 %bwipe! 1367 %bwipe!
1368 call assert_fails('e #', 'E499:') 1368 call assert_fails('e #', 'E194:')
1369 call assert_fails('e <afile>', 'E495:') 1369 call assert_fails('e <afile>', 'E495:')
1370 call assert_fails('e <abuf>', 'E496:') 1370 call assert_fails('e <abuf>', 'E496:')
1371 call assert_fails('e <amatch>', 'E497:') 1371 call assert_fails('e <amatch>', 'E497:')
1372 1372
1373 call writefile([], 'Xfile.cpp') 1373 call writefile([], 'Xfile.cpp')