bugGNU nano - Bugs: bug #57437, justifying a marked region can...

 
 

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

bug #57437: justifying a marked region can misjudge the indentation of the first line

Submitter:  Benno Schulenberg <bens>
Submitted:  Wed 18 Dec 2019 10:50:23 AM UTC
   
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Tue 10 Mar 2020 09:59:35 AM UTC, comment #1: 

Fixed in git, commit 9d499c76.

Benno Schulenberg <bens>
Group administrator
Wed 18 Dec 2019 10:50:23 AM UTC, original submission:  

To reproduce, run:

src/nano --ignore --fill=64  +8 README

Then type <Ctrl+Shift+Down> three times, and press ^J.  See how the indentation of the first line gets reduced to zero.

Now, one might argue that the user should be more careful in selecting the region.  Okay.  But...  The first line of the selection (in this case, the blank line before "First and foremost") does not contain any text, and in my opinion this means it cannot be used as a line to take the initial indentation from.  A line must actually contain text before one can see how much indentation the text has.

Expected behavior: nano should not change the indentation of the first non-blank line when justifying a marked region.

(This is probably majorly difficult to make, so I'm not even thinking of trying to fix this.)

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-03-10 bens StatusNone Fixed
        Assigned toNone bens

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code