patchGNU nano - Patches: patch #7550, Fix for Savannah bug 26111...

 
 
Show feedback again

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

patch #7550: Fix for Savannah bug 26111 (multi-line syntax highlighting broken)

Submitted by:  Ryan Lothian <ryanlothian>
Submitted on:  Thu 09 Jun 2011 11:32:20 PM UTC  
 
Category: NonePriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Release: None

Thu 09 Jun 2011 11:32:20 PM UTC, original submission:

This patch fixes Savannah bug 26111.

Reproducing the issue: I was able to reproduce the issue with the example given in 26111, using the latest nano from SVN (4546) and with c.nanorc with the final (trailing whitespace coloring) rule commented out.

Cause: The coloring loop in winio.c contains continue statements, so the wattroff calls at the end of each loop iteration are not always called.

Fix: This patch moves the wattroff calls to the for-loop, so they are called for every iteration. After applying the patch, the example C file in 26111 was colored correctly.

Ryan Lothian <ryanlothian>

 

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by ryanlothian (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):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 09 Jun 2011 11:32:20 PM UTCryanlothianAttached File-=>Added nano-highlight-patch.diff, #23515
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup