bugGNU nano - Bugs: bug #49897, "Esc Esc 010" and...

 
 

bug #49897: "Esc Esc 010" and "M-V 00000a" do not do the same thing

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Tue 20 Dec 2016 08:39:25 PM UTC  
 
Severity: 3 - NormalStatus: Fixed
Assigned to: Benno Schulenberg <bens>Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 27 Dec 2016 07:04:30 PM UTC, comment #1:

We can't change what the "Esc Esc ddd" sequences do, because that is how Pico behaves. But for the "M-V xxxxxx" we can freely choose what to do. Almost all codes should be accepted, except "M-V 00000A" when typing text, and "M-V 000000" when typing filenames. Those codes should be ignored, discarded, rejected.

Fixed in git, 908663e8.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Tue 20 Dec 2016 08:39:25 PM UTC, original submission:

When the user types the sequence <Esc> <Esc> 0 1 0, nao behaves as if the user typed ^J: it justifies the current paragraph. When instead M-V 00000a is typed (which should result in the very same code), nano behaves as if <Enter> was typed.

I think both codes should do nothing at all -- except beep. If the user wanted to create a newline, she would type <Enter>; if she want to justify a pargraph, she would type ^J. But no, she is attempting to enter a special code into the file, but a verbatim ^J /cannot/ be entered, so nano should somehow let the user know this.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 30 Dec 2016 08:09:52 PM UTCbensOpen/ClosedOpen=>Closed
    Tue 27 Dec 2016 07:04:30 PM UTCbensStatusNone=>Fixed
      Assigned toNone=>bens

    Back to the top


    Powered by Savane 3.1-cleanup1