diff --git a/Components/ScintEdit.pas b/Components/ScintEdit.pas index 92f0229db..224724d57 100644 --- a/Components/ScintEdit.pas +++ b/Components/ScintEdit.pas @@ -964,7 +964,7 @@ function TScintEdit.GetRawSelText: TScintRawString; Len: Integer; S: TScintRawString; begin - Len := Call(SCI_GETSELTEXT, 0, 0) - 1; + Len := Call(SCI_GETSELTEXT, 0, 0); if Len > 0 then begin InitRawString(S, Len); Call(SCI_GETSELTEXT, 0, LPARAM(PAnsiChar(@S[1]))); diff --git a/Files/isscint.dll b/Files/isscint.dll index 2c0617b61..ee051f0e2 100644 Binary files a/Files/isscint.dll and b/Files/isscint.dll differ diff --git a/Projects/Src/CompScintEdit.pas b/Projects/Src/CompScintEdit.pas index b1fd80f6d..19abb3552 100644 --- a/Projects/Src/CompScintEdit.pas +++ b/Projects/Src/CompScintEdit.pas @@ -157,13 +157,6 @@ procedure TCompScintEdit.CreateWnd; properties." -5.0.1: Review using SCI_INDICSETSTROKEWIDTH for high DPI support on INDIC_SQUIGGLE. - -5.1.5: Handle breaking change: "When calling SCI_GETTEXT, SCI_GETSELTEXT, - and SCI_GETCURLINE with a NULL buffer argument to discover the length - that should be allocated, do not include the terminating NUL in the - returned value. The value returned is 1 less than previous versions - of Scintilla. Applications should allocate a buffer 1 more than this - to accommodate the NUL. The wParam (length) argument to SCI_GETTEXT - and SCI_GETCURLINE also omits the NUL." -5.3.0: "Stop including STYLE_CALLTIP when calculating line height. Allows a large font to be used for calltips without affecting text display." Allows cleanup of our STYLE_AUTOCOMPLETION patch.