Tuesday, April 14, 2020

Re: removing past start position

On Di, 14 Apr 2020, Tavis Ormandy wrote:

> To be clear, very detailed reproduction steps:
>
> 1. In a new file, write this:
>
> one two three
>
> 2. Enter normal mode, position the cursor after "two" and enter insert
> mode, then type "four". It should look like this:
>
> one twofour three
>
> 3. *before* leaving insert mode, hit CTRL-W. I think it will now look
> like this:
>
> one two three
>
> But I want this:
>
> one three

Ah got it. That must have been there very long (and I actually like this
behaviour).

I suppose you want something like this:

diff --git a/src/edit.c b/src/edit.c
index edd2374e8..5be76db07 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -4883,9 +4883,7 @@ ins_bs(
#ifdef FEAT_RIGHTLEFT
revins_on ||

No comments:

Post a Comment