Christian wrote:

> On Mi, 18 Sep 2019, Bram Moolenaar wrote:
> 
> > I thought we only needed to avoid deleting the following fold and not
> > change anything else.  But now I read this comment in the help for
> > 'whichwrap':
> > 
> >     When 'l' is included and it is used after an operator at the end of a
> >     line then it will not move to the next line.  This makes "dl", "cl",
> >     "yl" etc. work normally.
> > 
> > This would apply since "x" is equivalent to "dl".  However, if you try
> > "dl" on an empty line, it does delete the line break.  It's like the
> > cursor is on top of the line break, so that gets deleted.
> 
> So how about adjusting the code to do what is actually in the 
> documentation, so even when the cursor is on the linebreak, do not move 
> over to the next line. This should also fix the problem that lead to 
> this patch initially. I think this patch does it:

This breaks that using "x" or "dl" on an empty line deletes the line
break.  All these solutions also don't work when using a count.

I think it should be fixed where the fold is included.  I'll make a
patch, please check for any remaining problems.

-- 
GALAHAD: No. Look, I can tackle this lot single-handed!
GIRLS:   Yes, yes, let him Tackle us single-handed!
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// 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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/201909201116.x8KBGPGa001622%40masaka.moolenaar.net.

Raspunde prin e-mail lui