nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] undoing deletions at the tail of the file adds a line


From: Mark Majeres
Subject: Re: [Nano-devel] undoing deletions at the tail of the file adds a line
Date: Fri, 12 Jun 2015 16:26:10 -0700

On 6/12/15, Benno Schulenberg <address@hidden> wrote:
>
> On Sun, Jun 7, 2015, at 18:41, Mark Majeres wrote:
>> I've added a loop to remove all of them with a single undo.
>
> Hmm... I felt that so many lines of looping code were overkill for
> such a small inconvenience.  So I didn't want to apply that.
>
> However, when adding a boolean plus a recursive call at the end...
> It seems to work fine.  Patch attached.  Anything I'm overlooking?
>
> Benno
>


As you've stated already, it's recursive.  My patch is releasing
memory and your patch is eating it up ;)  I revised my patch a little
and created a function free_undo()... maybe it will be more appealing.

--Mark

Attachment: dont-redo-magicline.v3.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]