SEGV upon deleting multiple bottom lines in vi
mike b
michallinuxstuff at gmail.com
Fri Nov 30 21:03:17 UTC 2018
Ah, yes, I didn't think about that scenario. Will definitely take your
patch for a spin and test it out. Thanks for your feedback!
pt., 30 lis 2018 o 18:39 Ron Yorston <rmy at pobox.com> napisał(a):
> Michał Berger wrote:
> >However, I haven't been able to determine if there are any side effects
> >of applying it yet (or even fully understan why that length-- happens
> >there at all), so take it with a grain of salt (it's not a proper fix
> >for sure). :D
>
> One side effect of the patch is that if you delete the only line in a
> file and then undo the deletion an extra line is added. That's why the
> length was being decremented. However, as the comment says, it should
> only be decremented if the text buffer becomes empty. The test for
> this condition is wrong.
>
> A different (and possibly better) patch follows.
>
> Ron
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20181130/cb844536/attachment.html>
More information about the busybox
mailing list