aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/textadept.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/textadept.c b/src/textadept.c
index 100b37b8..6a41b5a2 100644
--- a/src/textadept.c
+++ b/src/textadept.c
@@ -2235,6 +2235,9 @@ int main(int argc, char **argv) {
#if _WIN32
raw(), noecho();
#endif
+#ifdef NCURSES_REENTRANT
+ ESCDELAY = getenv("ESCDELAY") ? atoi(getenv("ESCDELAY")) : 100;
+#endif
#endif
char *last_slash = NULL;