bugGNU nano - Bugs: bug #24852, Nano surreptitiously breaks long...

 
 

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

bug #24852: Nano surreptitiously breaks long lines when editing with PuTTY on Windows

Submitter:  None
Submitted:  Sun 16 Nov 2008 05:01:41 PM UTC
   
 
Severity:  3 - Normal Status:  Need Info
Assigned to:  None Open/Closed:  Closed

Fri 22 Jul 2016 02:45:38 PM UTC, comment #4: 

The most likely cause for this unwanted line breaking is that the text inserted into the middle of a long line was pasted.  If the pasted text contains a final newline, on Putty this gets converted to a Ctrl+Enter, which is a ^J, which means Justify.

Benno Schulenberg <bens>
Group administrator
Fri 03 Apr 2015 05:31:57 PM UTC, comment #3: 

Closing due to age, lack of info and lack of response.

Benno Schulenberg <bens>
Group administrator
Sun 23 Feb 2014 12:30:47 PM UTC, comment #2: 

Cannot reproduce.  Does it happen only on Windows, and only while using PuTTY.  If also elsewhere, please include an example file and the version info of your nano.

Benno Schulenberg <bens>
Group administrator
Wed 10 Feb 2010 12:17:25 AM UTC, comment #1: 

There is a nowrap option available for use in nanorc; or, if you want, you can launch nano with the -w flag.

Dustin Howett <dhowett>
Sun 16 Nov 2008 05:01:41 PM UTC, original submission:  

I first discovered this bug when editing a php.ini file. I thought the file had been installed incorrectly when in fact nano had incorrectly "wrapped" the last word on the long line. The issue is apparent regardless of file contents. I don't edit html much with nano but it's especially bothersome when making a minor change to an html paragraph.

Reproducing the error:

Load any simple text file with lines longer than the screen width and insert text in the middle of a long line. In some cases the line scrolls and disappears correctly (I see a '$') and in other cases it simply breaks at the right margin and pushes the end of the line to the next line. The wrapping is inconsistent. I have not discovered what causes the the wrapping but moving to the end of the line and removing the LF corrects the line length.

This issue makes it difficult to edit config files with certainty. Saving and reloading confirms the LF was indeed written before the end of the line.

Anonymous

 

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

    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
    2015-04-03 bens Open/ClosedOpen Closed
    2014-02-23 bens StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code