bugGNU nano - Bugs: bug #36523, Nano breaks long lines spuriously


bug #36523: Nano breaks long lines spuriously

Submitted by:  None
Submitted on:  Tue 22 May 2012 03:18:47 PM UTC  
Severity: 3 - NormalStatus: Need Info
Assigned to: Chris Allegretta <astyanax>Open/Closed: Closed

Add a New Comment(Rich Markup)

You are not logged in

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


Sat 09 Jan 2016 04:50:58 PM UTC, comment #3:

Closing, as the "bug" is probably due to a lack of --nowrap.

Benno Schulenberg <bens>
Project Administrator
Sat 14 Jun 2014 04:11:48 PM UTC, comment #2:

Maybe we should urge distros to set nowrap in /etc/nanorc? Or instead consider making nowrap the default (when called as 'nano' and only use wrap by default when called as 'pico')?

Benno Schulenberg <bens>
Project Administrator
Thu 10 Jan 2013 03:58:53 AM UTC, comment #1:

Are you using -w or --nowrap on the command line? Nano lets you set or unset this option several different ways.

Chris Allegretta <astyanax>
Project AdministratorIn charge of this item.
Tue 22 May 2012 03:18:47 PM UTC, original submission:

When editing the end of a long line in a text file, nano often breaks the line, without the user pressing enter. While breaking the line for display purposes may be okay, actually inserting a line end without the user pressing "Enter" is unacceptable. This behavior is especially problematic when editing bash scripts, as it causes the new line to be interpreted as a new command. In my personal experience, it has caused many of my scripts to fail, forcing me to go back and remove the spurious line breaks.

The correct behavior would be for nano to only enter line breaks when the user presses "Enter."



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

Attach File(s):

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 (Posted a comment)
  • -unavailable- added by astyanax (Posted a comment)

    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
    Sat 09 Jan 2016 04:50:58 PM UTCbensOpen/ClosedOpen=>Closed
    Thu 10 Jan 2013 03:58:53 AM UTCastyanaxStatusNone=>Need Info
      Assigned toNone=>astyanax

    Back to the top

    Powered by Savane 3.1-cleanup1