63037Re: bufnr(" ") fails (always return -1)
- Nov 1, 2011On Mon, October 31, 2011 8:16 pm, Дмитрий Франк wrote:
> when executing autocommands, bufnr('<afile>') always return -1,I think this is intentionally and no bug.
> bufname('<afile>') returns empty, but expand('<afile>') works.
> Ugly workaround is to use bufnr(expand('<afile>'))
bufnr() is not expected to resolve those special variables.
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
- << Previous post in topic Next post in topic >>