Lech Lorens wrote:

> On 13 June 2012 14:05, Bram Moolenaar <b...@moolenaar.net> wrote:
> >
> > I wrote:
> >
> >> Patch 7.3.550 (after 7.3.541)
> >> Problem:    With "j" in 'formatoptions' a list leader is not removed. (Gary
> >>           Johnson)
> >> Solution:   Don't ignore the start of a three part comment. (Lech Lorens)
> >> Files:            src/ops.c, src/testdir/test29.in, src/testdir/test29.ok
> >
> > There is a small remaining problem: When joining a line that starts with
> > a list header, like in the example that Gary gave, there is an extra
> > space at the point where the lines were joined.
> 
> I can't see any spaces I wouldn't expect; for me there are only single
> spaces at the joining points. Can you specify explicitly what would
> you expect to be converted into what?

The example that Gary used:

" This is the first line
" and this is the second line
" -  Now a list item
" -  A second list item

Set 'filetype' to "vim" and add "j" to 'formatoptions.
Joining the last two lines leaves two spaces.
If you add more spaces before "A second list item" they will remain
after joining.  I don't think that should happen.

-- 
hundred-and-one symptoms of being an internet addict:
87. Everyone you know asks why your phone line is always busy ...and
    you tell them to send an e-mail.

 /// Bram Moolenaar -- b...@moolenaar.net -- 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