about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/input_win.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/input_win.c b/src/input_win.c
index 408bd45a..9ee71ce1 100644
--- a/src/input_win.c
+++ b/src/input_win.c
@@ -72,8 +72,11 @@ static void _parameter_autocomplete(char *input, int *size, char *command,
 void
 create_input_window(void)
 {
-    if (getenv("ESCDELAY") == NULL)
-        ESCDELAY = 25;
+#ifdef NCURSES_REENTRANT
+    set_escdelay(25);
+#else
+    ESCDELAY = 25;
+#endif
 
     int rows, cols;
     getmaxyx(stdscr, rows, cols);