Mercurial > vim
comparison src/testdir/test_vim9_cmd.vim @ 23711:29eccef07e2f v8.2.2397
patch 8.2.2397: Vim9: "%%" not seen as alternate file name for ":bdel"
Commit: https://github.com/vim/vim/commit/dfbc5fd879d92c2a79ced1e1d16dc89f4d55772d
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 23 15:15:01 2021 +0100
patch 8.2.2397: Vim9: "%%" not seen as alternate file name for ":bdel"
Problem: Vim9: "%%" not seen as alternate file name for commands with a
buffer name argument.
Solution: Recognize "%%" like "#". (closes #7732)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 23 Jan 2021 15:30:04 +0100 |
parents | a0c4d04a58c4 |
children | 262ab14b27db |
comparison
equal
deleted
inserted
replaced
23710:5f90c249c3e9 | 23711:29eccef07e2f |
---|---|
66 | 66 |
67 edit Xfileone.vim | 67 edit Xfileone.vim |
68 edit Xfiletwo | 68 edit Xfiletwo |
69 edit %%:r | 69 edit %%:r |
70 assert_equal('Xfileone', bufname()) | 70 assert_equal('Xfileone', bufname()) |
71 | |
72 assert_false(bufexists('altfoo')) | |
73 edit altfoo | |
74 edit bar | |
75 assert_true(bufexists('altfoo')) | |
76 assert_true(buflisted('altfoo')) | |
77 bdel %% | |
78 assert_true(bufexists('altfoo')) | |
79 assert_false(buflisted('altfoo')) | |
80 bwipe! altfoo | |
81 bwipe! bar | |
71 END | 82 END |
72 CheckDefAndScriptSuccess(lines) | 83 CheckDefAndScriptSuccess(lines) |
73 enddef | 84 enddef |
74 | 85 |
75 def Test_global_backtick_expansion() | 86 def Test_global_backtick_expansion() |