[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
dont-redo-magicline.v3.patch
Description: Text Data
- [Nano-devel] undoing deletions at the tail of the file adds a line, Benno Schulenberg, 2015/06/02
- Re: [Nano-devel] undoing deletions at the tail of the file adds a line, Mark Majeres, 2015/06/03
- Re: [Nano-devel] undoing deletions at the tail of the file adds a line, Benno Schulenberg, 2015/06/04
- Re: [Nano-devel] undoing deletions at the tail of the file adds a line, Mark Majeres, 2015/06/07
- Re: [Nano-devel] undoing deletions at the tail of the file adds a line, Benno Schulenberg, 2015/06/12
- Re: [Nano-devel] undoing deletions at the tail of the file adds a line,
Mark Majeres <=
- Re: [Nano-devel] undoing deletions at the tail of the file adds a line, Benno Schulenberg, 2015/06/13
- Re: [Nano-devel] undoing deletions at the tail of the file adds a line, Benno Schulenberg, 2015/06/13
- Re: [Nano-devel] undoing deletions at the tail of the file adds a line, Benno Schulenberg, 2015/06/13
- Re: [Nano-devel] undoing deletions at the tail of the file adds a line, Mark Majeres, 2015/06/15
- Re: [Nano-devel] undoing deletions at the tail of the file adds a line, Benno Schulenberg, 2015/06/17
- Re: [Nano-devel] undoing a backspace at almost the tail of the file loses a line, Benno Schulenberg, 2015/06/20