patchGNU nano - Patches: patch #7550, Fix for bug #26111 (multi-line...


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

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

Submitted by:  Ryan Lothian <ryanlothian>
Submitted on:  Thu 09 Jun 2011 11:32:20 PM UTC  
Priority:  5 - Normal Status:  Done
Privacy:  Public Assigned to:  Benno Schulenberg <bens>
Open/Closed:  Closed Release:  None

Sat 17 May 2014 08:30:07 PM UTC, comment #3:

A near-equivalent of your patch went into SVN, r4902.


Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Fri 21 Feb 2014 08:35:02 PM UTC, comment #2:

My fault. Don't know what I did wrong, but I can reproduce it now. And your patch makes it go away. Cool. Looking into it.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Fri 14 Feb 2014 12:58:25 PM UTC, comment #1:

Hi Ryan. Can you still reproduce this overcoloring with current nanos (2.2.6, 2.3.2, or svn)? I can't.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
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
  • -email is unavailable- added by bens (Posted a comment)
  • -email is unavailable- added by ryanlothian (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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-05-17 bens StatusNeed Info => Done
        Open/ClosedOpen => Closed
    2014-02-21 bens Assigned toNone => bens
        SummaryFix for Savannah bug 26111 (multi-line syntax highlighting broken) => Fix for bug #26111 (multi-line syntax highlighting broken)
    2014-02-14 bens StatusNone => Need Info
    2011-06-09 ryanlothian Attached File- => Added nano-highlight-patch.diff, #23515

    Back to the top

    Powered by Savane 3.3