Skip to content

Commit

Permalink
Updated calls to use the set_escdelay method
Browse files Browse the repository at this point in the history
  • Loading branch information
developwithpassion committed Apr 18, 2012
1 parent 5c8bbc0 commit de5f98a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions dvtm.c
Expand Up @@ -35,9 +35,7 @@
#endif #endif
#include "vt.h" #include "vt.h"


#ifdef PDCURSES
int ESCDELAY; int ESCDELAY;
#endif


typedef struct { typedef struct {
double mfact; double mfact;
Expand Down Expand Up @@ -1240,11 +1238,11 @@ parse_args(int argc, char *argv[]) {
break; break;
} }
case 'd': case 'd':
ESCDELAY = atoi(argv[++arg]); set_escdelay(atoi(argv[++arg]));
if (ESCDELAY < 50) if (ESCDELAY < 50)
ESCDELAY = 50; set_escdelay(50);
else if (ESCDELAY > 1000) else if (ESCDELAY > 1000)
ESCDELAY = 1000; set_escdelay(1000);
break; break;
case 'h': case 'h':
screen.history = atoi(argv[++arg]); screen.history = atoi(argv[++arg]);
Expand Down

0 comments on commit de5f98a

Please sign in to comment.