Hi,

On Tue, May 8, 2018 at 11:08 AM, lacygoill <[email protected]> wrote:
> vim --version: VIM - Vi IMproved 8.0 Included patches: 1-1789
> Operating system: Ubuntu 16.04.4 LTS
> Terminal emulator: rxvt-unicode v9.22
> Terminal multiplexer: tmux master
> $TERM: tmux-256color
> Shell: zsh 5.3.1
>
> Here's a MWE:
>
>     fu! Replace_qfl() abort
>         call setqflist([], 'r',
>                      \ {'items': [{ 'filename': $VIMRUNTIME.'/filetype.vim',
>                      \              'lnum': 1,
>                      \              'valid': 1 }],
>                      \  'title': 'some title',
>                      \ })
>     endfu
>
>     nno  <silent>  cd  :<c-u>call Replace_qfl()<cr>
>
>     let &stl = "%{exists('w:quickfix_title') ? w:quickfix_title : ''}"
>
> If you write this code in /tmp/vimrc, then start Vim like this:
>
> $ vim -Nu /tmp/vimrc
>
> Then, execute a command to populate the quickfix list:
>
> :vim /pattern/ $VIMRUNTIME/**/*.vim | cw
>
> Finally press cd to invoke the custom function Replace_qfl(), the title of
> the quickfix window becomes:
>
> :some title
>
> A colon is added in front of the title of the quickfix list.
> If you close and re-open the quickfix window, it disappears.
>

This problem is addressed by  8.0.1831.

- Yegappan

>
> The issue seems to come from w:quickfix_title, not from the title itself:
>
> echo w:quickfix_title
>     → ':some title'
>        ^ ✘
>
> echo getqflist({'title':0})
>     → 'some title'
>        ^ ✔
>

-- 
-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui