In the process of converting a file from vimscript to vim9script, I came 
across the following inconsistent behavior with the ex-command bwipeout 
"%".  I'm running gvim 9.1.136 in Windows 10.  The problem is demonstrated 
by the two scripts below.

bwipeoutBug.vim:
    " Source this script, then enter the ex-command :call BWO().
    " The "wipeout "%" command succeeds
    "
    edit $VIMRUNTIME/filetype.vim
    function! g:BWO()
        bwipeout "%"
    endfunction

bwipeoutBug9.vim:
    vim9script
    # Source this script, then enter the ex-command :call BWO9().
    # The "wipeout "%" command returns E94: No matching buffer for "%"
    #
    edit $VIMRUNTIME/filetype.vim
    def g:BWO9()
        bwipeout "%"
    enddef


-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/4ae54f87-8773-4058-b7be-bd45e30d6682n%40googlegroups.com.

Raspunde prin e-mail lui