ZyX wrote:

> Consider the following script:
> =============================== qflistbug.vim ===============================
> function s:Read()
>     call setline('.', range(1, 100))
> endfunction
> autocmd BufReadCmd read://* :call s:Read()
> call setqflist([{'lnum': 4, 'text': 'Abc def', 'filename': 'read://100'}])
> cfirst
> =============================================================================
> Being launched with
>     vim -u NONE -S qflistbug.vim
> it ends up on the 100th line of buffer named read://100, while it should end 
> on 4th one. Everything is normal if ``'read://100''' is replaced with 
> `expand('<sfile>')'.

I'll put it in the todo list.

-- 
hundred-and-one symptoms of being an internet addict:
20. When looking at a pageful of someone else's links, you notice all of them
    are already highlighted in purple.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
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

Raspunde prin e-mail lui