bugGNU nano - Bugs: bug #47296, when a file no longer matches any...

 
 

bug #47296: when a file no longer matches any syntax, it does not lose colors

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Sun 28 Feb 2016 04:25:02 PM UTC  
 
Severity: 2 - MinorStatus: 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.

 

Thu 14 Jul 2016 05:36:59 PM UTC, comment #2:

Fixed in git, ef07125.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Thu 14 Jul 2016 12:57:27 PM UTC, comment #1:

Ah, no -- it does lose all colors, it just doesn't refresh the screen after the change of name. It does refresh the screen when a new syntax is matched.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sun 28 Feb 2016 04:25:02 PM UTC, original submission:

If for some reason the user does not have a default syntax defined, and upon saving a file it no longer matches any extension nor header nor magic, then the file stays colored the way it is, instead of losing all color.

This may be acceptable, but it was somewhat surprising.
"Bug" is present since at least 2.2.4.

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

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 30 Jul 2016 09:05:39 AM UTCbensOpen/ClosedOpen=>Closed
    Thu 14 Jul 2016 05:36:59 PM UTCbensStatusNone=>Fixed
      Assigned toNone=>bens
    Mon 29 Feb 2016 12:40:04 PM UTCbensSummarywhen upon saving a file it no longer matches any syntax, the file does not lose colors=>when a file no longer matches any syntax, it does not lose colors

    Back to the top


    Powered by Savane 3.1-cleanup1