bugGNU nano - Bugs: bug #60667, something like +cr23 on the...

 
 

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

bug #60667: something like +cr23 on the command line does not get rejected

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Tue 25 May 2021 09:31:59 AM UTC  
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  Benno Schulenberg <bens> Open/Closed:  Closed

Tue 25 May 2021 10:24:21 AM UTC, comment #2: 

Fixed in git, commit 8797ada8, by starting the number parsing at the first character after the + (when no / or ? was found).

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Tue 25 May 2021 10:03:25 AM UTC, comment #1: 

The commit that introduced +/ and +? is 2326bf69 from two years ago.  It additionally makes the incorrect change from [1] to [n] in the call of parse_line_column(): when there is no / or ?, then nano should look at the first character after the +, and not skip any characters.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Tue 25 May 2021 09:31:59 AM UTC, original submission:  

To reproduce, run

src/nano --ignore --line +cr23 README

See that the cursor is on line 23.  But "cr23" is not a valid line number.  The "c" and "r" are only valid when they are followed by either "/" or "?".  When not followed by either of those two, the whole ensemble should be ignored reported as invalid.

Bug exists since version 4.4, since +/ and +? were introduced.

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

 

No files currently attached

 

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
    2021-06-16 bens Open/ClosedOpen => Closed
    2021-05-25 bens StatusIn Progress => Fixed
    2021-05-25 bens StatusNone => In Progress

    Back to the top


    Powered by Savane 3.6