Menu

#1842 ctrl-click folding regression after fix for bug #1799

Bug
closed-fixed
5
2016-09-05
2016-06-24
Oliver Yeoh
No

Since bug #1799 was fixed, ctrl-click doesn't always work as expected
Have confirmed this by removing the commits for #1799

Unfortunately I don't know how to fix this. Hopefully this information helps.

Have attached a test file and also a screenshot of the problem

  1. open test.c
  2. ctrl-click on a()
  3. ctrl-click on b()
    problem: b() doesn't fold
2 Attachments

Discussion

  • Neil Hodgson

    Neil Hodgson - 2016-08-15
    • labels: folding --> folding, scintilla, scite
    • status: open --> open-fixed
    • assigned_to: Neil Hodgson
     
  • Neil Hodgson

    Neil Hodgson - 2016-08-15

    The problem appears to be that the text offscreen hadn't been lexed or had fold structure extracted (or this information was stale) which then caused styling which led to recursive execution of folding code. Avoided by finding last child text, and thus styling, before folding the line.

    Fommitted as [4ce6fa] for SciTE and as [91d90d] for the similar code in Scintilla.

     

    Related

    Commit: [4ce6fa]
    Commit: [91d90d]

  • Neil Hodgson

    Neil Hodgson - 2016-09-05
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB