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

 
 

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

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 - Normal Status:  Fixed
Assigned to:  Benno Schulenberg <bens> Open/Closed:  Closed

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:
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.

 

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

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-12-13 bens Open/ClosedOpen => Closed
    2016-11-13 bens StatusNone => Fixed
    2016-11-13 bens Carbon-Copy- => Added shirishag75@gmail.com

    Back to the top


    Powered by Savane 3.4