bugGNU nano - Bugs: bug #49593, option "set fill" does...

 
 

bug #49593: option "set fill" does not overrride "set nowrap"

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Sun 13 Nov 2016 04:41:42 PM UTC  
 
Severity: 3 - NormalStatus: Fixed
Assigned to: Benno Schulenberg <bens>Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sun 13 Nov 2016 06:53:21 PM UTC, comment #2:

Fixed in git, 65bf36b.

Thanks for reporting.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sun 13 Nov 2016 04:53:56 PM UTC, comment #1:

Bug was found by Shirish. See https://lists.gnu.org/archive/html/help-nano/2016-11/msg00004.html.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sun 13 Nov 2016 04:41:42 PM UTC, original submission:

When /etc/nanorc contains the setting 'set nowrap' (as Debian seems to do nowadays by default), the user can override this only by using the command-line option --fill, not with the .nanorc option 'set fill'.

Expected behavior: when 'set fill nn' follows 'set nowrap' in the rc files, wrapping should be turned back on (and the filling width set to nn); when however 'set nowrap' follows 'set fill nn', wrapping should be turned off but the filling width for explicit justifications with ^J should still be set to nn.

This issue was mentioned in comment #2 of bug #46492, but then I didn't take into account that the two settings might be in different files, and the "set nowrap" in /etc/nanorc, over which file the user might not have control. So even if this breaks things for some users (getting hardwrap turned back on when they only meant to set the filling width for ^J), it will have to be done -- they can easily restore the previous behavior by adding a "set nowrap" after the "set fill" in their ~/.nanorc.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.

 

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

Attach File(s):
   
   
Comment:
   

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
  • -unavailable- added by bens (Submitted the item)
  •  

    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
    Tue 13 Dec 2016 11:47:27 AM UTCbensOpen/ClosedOpen=>Closed
    Sun 13 Nov 2016 06:53:21 PM UTCbensStatusNone=>Fixed
    Sun 13 Nov 2016 04:53:56 PM UTCbensCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1