patchGNU nano - Patches: patch #8792, undoing consecutive Enters as a...


You are not allowed to post comments on this tracker with your current authentication level.

patch #8792: undoing consecutive Enters as a whole

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Sat 14 Nov 2015 05:05:55 PM UTC  
Priority:  5 - Normal Status:  Need Info
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  None

Fri 01 Jul 2016 01:50:35 PM UTC, comment #1: 

Updated the patch for the current state of git.  It's still only a partial patch, but meanwhile I think it is the better behavior.

(file #37651)

Benno Schulenberg <bens>
Project Administrator
Sat 14 Nov 2015 05:05:55 PM UTC, original submission:  

Currently nano undoes each and every stroke of the Enter key separately.  Attached patch undoes (and redoes) a series of consecutive Enters as a unit.

Don't know if this is a good idea -- whether people would not prefer each newline to be undone on its own, as it does now.  Also, the patch is not complete: also consecutive line joins would have to be undone (and redone) as a whole.

(Anyway, I just saw the similarity, and thought: let's save some code.  Fifteen lines shave off.)

Benno Schulenberg <bens>
Project Administrator


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by bens (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-07-01 bens Attached File- => Added 0001-text-undo-consecutive-Enters-in-one-go-instead-of-ea.patch, #37651
        StatusNone => Need Info
    2015-11-14 bens Attached File- => Added treating-enters-like-insert.patch, #35462

    Back to the top

    Powered by Savane 3.6