Mat:

> With caching turned on the corruption is only temporary and disappears
> very quickly but it doesn't look good. I've uploaded a screenshot
> (12k) here:
> http://purebasic.myftp.org/files/6/scintilla/scintillaproblem.png
>
> And a zip (192k) containing a small demonstration exe, scilexer.dll
> and source (written in PureBasic) is here:
> http://purebasic.myftp.org/files/6/scintilla/scintillaproblem.zip

   This is caused by SCI_GETCARETLINEVISIBLE dropping some cached
styling information needed by painting. Fixed by adding some refresh
calls immediately after the notification is sent. Committed to CVS and
here is the diff if you want to modify your copy:

RCS file: /cvsroot/scintilla/scintilla/src/Editor.cxx,v
...
@@ -2755,6 +2754,8 @@
        if (needUpdateUI) {
                NotifyUpdateUI();
                needUpdateUI = false;
+               RefreshStyleData();
+               RefreshPixMaps(surfaceWindow);
        }

        // Call priority lines wrap on a window of lines which are likely

   Neil

_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to