aboutsummaryrefslogtreecommitdiff
path: root/src/textadept.c
diff options
context:
space:
mode:
authormitchell <none@none>2021-11-29 12:07:47 -0500
committermitchell <none@none>2021-11-29 12:07:47 -0500
commit59c9a95ba9e70f66d61bfd8a90a917bdc468272d (patch)
tree5fdb99b609e6a25eac8e5a3342ed414ba156e503 /src/textadept.c
parentbe1efd2bf3c8746c0697dc613945444632b7e94c (diff)
downloadtextadept-59c9a95ba9e70f66d61bfd8a90a917bdc468272d.tar.gz
textadept-59c9a95ba9e70f66d61bfd8a90a917bdc468272d.zip
Updated to Scintilla 5.1.4.
Diffstat (limited to 'src/textadept.c')
-rw-r--r--src/textadept.c2
1 files changed, 0 insertions, 2 deletions
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;
}