bugGNU nano - Bugs: bug #58023, in current git, nano can get the...

 
 

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

bug #58023: in current git, nano can get the succeeding indentation wrong

Submitter:  Benno Schulenberg <bens>
Submitted:  Sun 22 Mar 2020 04:40:24 PM UTC
   
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Sun 22 Mar 2020 05:45:41 PM UTC, comment #1: 

Fixed in git, commit 107abd26.

And closing because unreleased.

Benno Schulenberg <bens>
Group administrator
Sun 22 Mar 2020 04:40:24 PM UTC, original submission:  

To reproduce, run 'src/nano +23,48 README'.
The cursor is sitting two positions before the "F" of "For more".
Now type: <Ctrl+Shift+Up> and ^J.

See that the marked region's succeeding paragraph, the one that starts with "For more", has two spaces too many as indentation -- the two spaces that were located after the marked region before ^J was pressed.

Expected behavior: nano should "eat" whitespace after the marked region, just like it "eats" whitespace before it.

(I had this "eating" in one version of the patch or other, but it got lost somehow.)

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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-03-22 bens StatusIn progress Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.14-9aa3.
    Corresponding source code