bugGNU nano - Bugs: bug #48047, statusbar shows wrong info when...

 
 

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

bug #48047: statusbar shows wrong info when one of the files is unwritable

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Sat 28 May 2016 07:34:15 PM UTC  
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  Benno Schulenberg <bens> Open/Closed:  Closed

Sat 04 Jun 2016 09:46:54 AM UTC, comment #2: 

Closing, as it's an unreleased bug.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Fri 03 Jun 2016 07:26:10 PM UTC, comment #1: 

Fixed in git, 0293eac.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sat 28 May 2016 07:34:15 PM UTC, original submission:  

To reproduce, run 'chmod a-w README && src/nano NEWS README'.  The statusbar will say: "[ Read 72 lines (Warning: No write permission) ]".  But NEWS is far longer than 72 lines: 1502 lines.  Confusingly, the info for README is displayed underneath NEWS.

I propose to solve this by stopping to report the number of lines read for files that are unwritable -- the more important message is that they are unwritable.  And to make clear which file is unwritable (in case multiple files are opened at once), precede the message with the full filename: "[ /home/ben/Repositories/NANO/README is unwritable ]".

Or maybe: "[ File is unwritable: /home/ben/Repositories/NANO/README ]".

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 (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-06-04 bens Open/ClosedOpen => Closed
    2016-06-03 bens StatusNone => Fixed

    Back to the top


    Powered by Savane 3.5