vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 97c47dee37b42220cecfded637149543ed6f0d75 parent 7cbcf424f02afddf78f20510f0e648debeeaba21 Author: Marc André Tanner <mat@brain-dump.org> Date: Sat, 4 Apr 2015 11:33:30 +0200 Move more curses related stuff to ui-curses.c Diffstat:
| M | ui-curses.c | | | 7 | +++++++ |
| M | vis.c | | | 7 | ------- |
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/ui-curses.c b/ui-curses.c @@ -21,6 +21,13 @@ # define MAX_COLOR_PAIRS COLOR_PAIRS #endif +#ifdef PDCURSES +int ESCDELAY; +#endif +#ifndef NCURSES_REENTRANT +# define set_escdelay(d) (ESCDELAY = (d)) +#endif + #if 0 #define wresize(win, y, x) do { \ if (wresize(win, y, x) == ERR) { \ diff --git a/vis.c b/vis.c @@ -38,13 +38,6 @@ #include "util.h" #include "map.h" -#ifdef PDCURSES -int ESCDELAY; -#endif -#ifndef NCURSES_REENTRANT -# define set_escdelay(d) (ESCDELAY = (d)) -#endif - typedef union { bool b; int i;