Lech Lorens wrote:

> On 21-Jul-2010 Bram Moolenaar <b...@moolenaar.net> wrote:
> > 
> > It would be possible to add a statusline item for this, like %h.
> [...]
> > Note that I'm including less changes now, and nothing that looks
> > "dangerous" or needs to be discussed first.
> 
> I followed your excellent advice with a window variable. This made the
> whole thing much simpler (the patch is almost 50% smaller than the
> previous one).
> 
> Since you disliked the repeated code calling buf_spname(), I reverted
> buf_spname() to the original shape, which means that no more memory
> allocations are needed.
> 
> The only thing that is being done now is that the command which produces
> a list of errors is remembered along with the quickfix list and when
> a quickfix window is opened, the command name is copied to the
> w:quickfix_title variable.
> 
> Since I also added a flag for the 'statusline' variable, I added a file
> ftplugin/qf.vim, which sets 'statusline' for quickfix windows so that
> the value of w:quickfix_title is displayed.
> 
> The patch is against changeset 878562053b.

Thanks.  I'll have a closer look soon.

-- 
It is illegal for a driver to be blindfolded while operating a vehicle.
                [real standing law in Alabama, United States of America]

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.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