bugGNU nano - Bugs: bug #59948, things are miscolored when 'start'...

 
 

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

bug #59948: things are miscolored when 'start' and 'end' match are far apart

Submitter:  Benno Schulenberg <bens>
Submitted:  Tue 26 Jan 2021 06:14:46 PM UTC
   
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Wed 27 Jan 2021 04:24:45 PM UTC, comment #3: 

Fixed in git, commit 43d94692, by always searching backward for a start match for the first row of the screen.

(There is still some miscoloring when three start/end matches are involved, but that is something for later.)

Benno Schulenberg <bens>
Group administrator
Wed 27 Jan 2021 09:00:48 AM UTC, comment #2: 

The offending commit is b3bcc8ee: "painting: make use of the multidata of the preceding line".

The commit also says: "for the first screen line we will always have to do some backtracking. But that is left for later."  It seems the backtracking wasn't implemented, or at least not fully.

Benno Schulenberg <bens>
Group administrator
Tue 26 Jan 2021 06:16:16 PM UTC, comment #1: 

Properly formatted recipe:

src/nano -Ypython +-1 NEWS


Benno Schulenberg <bens>
Group administrator
Tue 26 Jan 2021 06:14:46 PM UTC, original submission:  

To reproduce, run
+verbatim-
src/nano -Ypython +-1 NEWS
-verbatim-
(Note the +-1 for starting at end-of-file.)

Then type: ''' M-\ '''
See that all text on the screen gets colored green (because the whole file needs to be colored this way).
Now type: M-/
See that the text at the end of the buffer is /not/ colored green.  But it ought to be.

Bug exists since version 2.7.5,
but existed also before version 2.6.2.

Benno Schulenberg <bens>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-02-25 bens Open/ClosedOpen Closed
    2021-01-27 bens StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code