On Wed, Mar 25, 2020 at 10:24 PM Bram Moolenaar <[email protected]> wrote:
>
> I would prefer to have undo also restore the text property.  In case
> text properties are manually added it's the only way to have a real
> undo.
>
> But it should then also undo the changes in the line above and below, so
> that text properties that were adjusted for what was deleted is also
> undone.  Thus the number of lines that undo saves must be adjusted also

I have drafted a pull request that implements this:
https://github.com/vim/vim/pull/5875
Fairly messy and in need of improvement,
ml_append/delete are made to take flags, whether to touch text props.
Also I noticed I got a lot of warnings for bad format specifiers in
undo.c: What is up with that?

The other pull request
https://github.com/vim/vim/pull/5839,
am I fairly happy with now -
it should just be the screenshot test that needs updating -
but it might make sense to have it blocked on this issue.

/Axel F

-- 
-- 
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/CAPt4RUqchf%3Dnu3rXxAN%3DBdaOMM7O35HWk1C7qknxtF%3D1mCAE-Q%40mail.gmail.com.

Raspunde prin e-mail lui