bugGNU nano - Bugs: bug #50293, in current git, an offscreen start...

 
 

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

bug #50293: in current git, an offscreen start match is overlooked

Submitter:  Benno Schulenberg <bens>
Submitted:  Mon 13 Feb 2017 09:51:40 AM UTC
   
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Mon 13 Feb 2017 10:20:38 AM UTC, comment #1: 

Fixed in git, 7ef5c532.

Benno Schulenberg <bens>
Group administrator
Mon 13 Feb 2017 09:51:40 AM UTC, original submission:  

To reproduce, run 'src/nano --syntax=c xxx'.  Then type:

/* Hey


hey *

That is: four lines, and without the terminating slash that would finish the comment.  Now press and hold <Enter> until all of the text has scrolled offscreen.  Then type M-G 1,6 <Enter>.  The cursor now sits on the "y" of "Hey".  Type M-= three times to scroll the "Hey" three lines offscreen.  The cursor sits after the star after "hey".  Now type the terminating slash (/).  The "hey" does not get colored.  But it should.

When we find an unpaired startmatch, we shouldn't mark that line as CNONE.  We have to mark that line as CWOULDBE, and every line after it too, so that, when the user finally types the matching end string for an offscreen startmatch, the painting routine (when it starts to paint the first line of the screen) knows it has to check for an end match -- instead of being fooled by a CNONE that there is nothing unpaired before the topline.

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
    2017-02-13 bens Open/ClosedOpen Closed
    2017-02-13 bens StatusIn Progress Fixed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code