Marcin Szamotulski wrote:

> On 20:02 Thu 21 Aug     , Christian Brabandt wrote:
> > 
> > On Do, 21 Aug 2014, 'Andy Wokula' via vim_dev wrote:
> > 
> > > Am 21.08.2014 um 07:49 schrieb Christian Brabandt:
> > > >Am 2014-08-20 19:03, schrieb 'Andy Wokula' via vim_dev:
> > > >>Some people expect  :1,$bd  or :%bd  to delete all buffers.
> > > >
> > > >That only works by accident, because your current buffer has more
> > > >lines than you have open buffers.
> > > >
> > > >Or saying it differently, this does not work in an empty buffer.
> > > >
> > > >So this expectation is not really valid.
> > > 
> > > Er, what you cited implies that it doesn't work at the moment
> > > (as expected (by some people (for a long time))).
> > >
> > > The idea is to make it become valid ...
> > > 
> > > >Marcin Szamotulski wrote:
> > > >>There are probably a few other commands that could benefit with a
> > > >>similar approach.
> > > 
> > > Got it?
> > > 
> > 
> > Ah, I thought you wanted to keep the current behaviour, that currently 
> > %bd already does delete all buffers (but only, if your buffer has enough 
> > lines).
> 
> Hi,
> 
> So here are updated patches:
> count.patch - the counts
> argadd.patch - :argadd to be a valid command without and argument (:argadd%)

The patch for argadd doesn't take care of everything:
- If there are special characters in the current buffer name, these are
  not handled correctly.  buf->b_fname should be added to new_ga
  directly instead of parsing the string with get_arglist().
- If the current buffer does not have a name there should be an error
  message.

Please adjust the patch for that.

-- 
hundred-and-one symptoms of being an internet addict:
164. You got out to buy software, instead of going out for a beer.

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

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