aboutsummaryrefslogtreecommitdiff
path: root/src/textadept.c
diff options
context:
space:
mode:
authormitchell <70453897+orbitalquark@users.noreply.github.com>2022-02-15 22:04:46 -0500
committermitchell <70453897+orbitalquark@users.noreply.github.com>2022-02-15 22:04:46 -0500
commit70a4fe3fc0163fc90dcd55de962ad99bac237790 (patch)
tree745a95605231e52bb20099662b17f1c8dff74f1a /src/textadept.c
parent95089e36d221a1f870916b5aa5acd5b7274d8444 (diff)
downloadtextadept-70a4fe3fc0163fc90dcd55de962ad99bac237790.tar.gz
textadept-70a4fe3fc0163fc90dcd55de962ad99bac237790.zip
Updated to Scintilla 5.2.0.
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 6c50c04f..794acd3f 100644
--- a/src/textadept.c
+++ b/src/textadept.c
@@ -1154,8 +1154,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;
}