[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: |
Sun, 7 Jun 2015 09:41:26 -0700 |
On 6/4/15, Benno Schulenberg <address@hidden> wrote:
>
> Hi Mark,
>
> On Wed, Jun 3, 2015, at 20:30, Mark Majeres wrote:
>> On 6/2/15, Benno Schulenberg <address@hidden> wrote:
>> > Run for example 'src/nano --ignorercfiles +77 README'.
>> > Try a <Down>; nothing happens, we're at the tail.
>> >
>> > Now type: <Backspace> <Backspace> M-U M-U
>> > and then <Down>; the cursor goes down one line;
>> > an extra line has been added.
>>
>> I attached a revised patch. Please see if it solves the problem.
>
> Yes, that fixes the problem fully and nicely.
>
> But... when one does 'src/nano --ignorercfiles +77 README'
> and then <Left> <Left> and then types ten times <Delete>,
> one has to type ten times M-U to get the period back.
>
> It would be nice if it could somehow prevent deleting the
> magicline a second time in a row. However, this is already
> better than not putting the cursor back where it was, so if
> it's too difficult to prevent multiple magicline deletions,
> this will be fine.
>
> Regards,
>
> Benno
>
I've added a loop to remove all of them with a single undo. New patch
is attached.
--Mark
dont-redo-magicline.v2.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 <=
- 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, 2015/06/12
- 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