]> Sergey Matveev's repositories - nnn.git/commitdiff
Revert "Set Escape delay to 0"
authorucs <git-51d@ug0.fr>
Wed, 12 Aug 2020 09:55:15 +0000 (11:55 +0200)
committerucs <git-51d@ug0.fr>
Wed, 12 Aug 2020 09:55:15 +0000 (11:55 +0200)
An ESCDELAY of 0 can break long escape sequences, such as the arrow keys,
on slower terminals.

This reverts commit 2599564e6480384b0872174f685c0128276062ca.

src/nnn.c

index a6220bbff3c3e9c1e9d71ee903df7fb62691b288..1f0386ba3893672b23335a10f310e76ee697a6a7 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -1714,7 +1714,7 @@ static bool initcurses(void *oldmask)
        }
 
        settimeout(); /* One second */
-       set_escdelay(0);
+       set_escdelay(25);
        return TRUE;
 }