From 59c9a95ba9e70f66d61bfd8a90a917bdc468272d Mon Sep 17 00:00:00 2001 From: mitchell Date: Mon, 29 Nov 2021 12:07:47 -0500 Subject: Updated to Scintilla 5.1.4. --- src/textadept.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/textadept.c') diff --git a/src/textadept.c b/src/textadept.c index a4ab9ef6..d01553ee 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -1148,8 +1148,6 @@ static int call_scintilla( len = SS(view, msg, wparam, 0); if (wtype == SLEN) wparam = len; text = malloc(len + 1), text[len] = '\0'; - if (msg == SCI_GETTEXT || msg == SCI_GETSELTEXT || msg == SCI_GETCURLINE) - len--; // Scintilla appends '\0' for these messages; compensate lparam = (sptr_t)text; } -- cgit v1.2.3