vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 13470668ab35fcce8bc3e2ddf68da8fd0a9a7a7a parent 3078e69950301a4bac565c3db28c8f88fc13c957 Author: Marc André Tanner <mat@brain-dump.org> Date: Tue, 22 Nov 2016 14:42:11 +0100 ui: remove $ESCDELAY handling We are no longer using curses for input handling, hence this code is obsolete. Diffstat:
| M | ui-curses.c | | | 9 | --------- |
1 file changed, 0 insertions(+), 9 deletions(-)
diff --git a/ui-curses.c b/ui-curses.c @@ -36,13 +36,6 @@ # define MAX_COLOR_PAIRS COLOR_PAIRS #endif -#ifdef PDCURSES -int ESCDELAY; -#endif -#ifndef NCURSES_REENTRANT -# define set_escdelay(d) (ESCDELAY = (d)) -#endif - #define CONTROL(k) ((k)&0x1F) #ifndef DEBUG_UI @@ -1143,8 +1136,6 @@ static bool ui_init(Ui *ui, Vis *vis) { goto err; } - if (!getenv("ESCDELAY")) - set_escdelay(50); if (!newterm(term, stderr, stdin)) { snprintf(uic->info, sizeof(uic->info), "Warning: unknown term `%s'", term); if (!newterm(strstr(term, "-256color") ? "xterm-256color" : "xterm", stderr, stdin))