bugGNU nano - Bugs: bug #57897, with --cutfromcursor, ^K does not...

 
 

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

bug #57897: with --cutfromcursor, ^K does not cut the penultimate line

Submitter:  Benno Schulenberg <bens>
Submitted:  Tue 25 Feb 2020 05:54:57 PM UTC
   
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Wed 26 Feb 2020 11:08:46 AM UTC, comment #4: 

Fixed in git, commit 2fd61818.

Benno Schulenberg <bens>
Group administrator
Tue 25 Feb 2020 06:37:48 PM UTC, comment #3: 

A third try gives 67873e96 as the offending commit: "cover the corner cases where cut commands do not cut anything".

Benno Schulenberg <bens>
Group administrator
Tue 25 Feb 2020 06:26:58 PM UTC, comment #2: 

Bisecting again brings the same result.  But... the actual error must be earlier, because the magic line stops being added quite a while before before --final is added.

Benno Schulenberg <bens>
Group administrator
Tue 25 Feb 2020 06:14:57 PM UTC, comment #1: 

Bisecting identifies 5dbd9c00 as the offending commit: "add -f, --finalnewline, the counterpart of --nonewlines".  But that can't be right.

Benno Schulenberg <bens>
Group administrator
Tue 25 Feb 2020 05:54:57 PM UTC, original submission:  

To reproduce, run:

src/nano --ignore --constant --cutfrom

Then type: x <Backspace> ^K
Nano reports that "Nothing was cut".  Type <Down>.  There is still an empty line there that could and should have been cut.

Bug exists since version 4.0.

Benno Schulenberg <bens>
Group administrator

 

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

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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-03-25 bens Open/ClosedOpen Closed
    2020-02-26 bens Severity3 - Normal 2 - Minor
        StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code