#561 BugFixed: Npp will crash when scrolling pass EOF, in the situation of both "Scroll Pass EOF" and "Clickable Link" enabled.

Next_release
closed
Don HO
None
5
2014-03-07
2014-02-17
visimulator
No

BugFixed: Npp will crash when scrolling pass EOF, in the situation of
"Scroll Pass EOF" enabled (which can be done by installing the plugin
"ScrollPastEOF"), and "Clickable Link" enabled.

I can't update the patch file successfully, so paste the diff below:


PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp | 1 +
1 file changed, 1 insertion(+)

diff --git a/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp b/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp
index 7523941..640df67 100644
--- a/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp
+++ b/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp
@@ -1734,6 +1734,7 @@ void ScintillaEditView::getVisibleStartAndEndPosition(int * startPos, int * endP
int linesOnScreen = execute(SCI_LINESONSCREEN);
int lineCount = execute(SCI_GETLINECOUNT);
endPos = execute(SCI_POSITIONFROMLINE, execute(SCI_DOCLINEFROMVISIBLE, firstVisibleLine + min(linesOnScreen, lineCount)));
+ if (
endPos == -1) *endPos = execute(SCI_GETLENGTH);
}

char * ScintillaEditView::getWordFromRange(char * txt, int size, int pos1, int pos2)

Discussion

  • visimulator
    visimulator
    2014-02-18

    sorry for the repeated post, please deleted this post.

     
  • Don HO
    Don HO
    2014-02-20

    • status: open --> accepted
     
  • Don HO
    Don HO
    2014-03-07

    • Status: accepted --> closed