Skip to content
This repository was archived by the owner on Jan 13, 2024. It is now read-only.

Commit 7afaa74

Browse files
authored
Merge pull request #28 from nea/gettext_length
Changed: ScintillaGateway GetText method now uses length for its byte…
2 parents 8682490 + f5a2108 commit 7afaa74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Visual Studio Project Template C#/PluginInfrastructure/ScintillaGateway.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1766,7 +1766,7 @@ public unsafe void SetText(string text)
17661766
/// </summary>
17671767
public unsafe string GetText(int length)
17681768
{
1769-
byte[] textBuffer = new byte[10000];
1769+
byte[] textBuffer = new byte[length];
17701770
fixed (byte* textPtr = textBuffer)
17711771
{
17721772
Win32.SendMessage(scintilla, SciMsg.SCI_GETTEXT, (IntPtr) length, (IntPtr) textPtr);

0 commit comments

Comments
 (0)