mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-06-17 21:18:06 +02:00
zsh-workers:6131
This commit is contained in:
parent
2aae84ff48
commit
cfd1678163
1 changed files with 1 additions and 1 deletions
|
@ -413,7 +413,6 @@ zleread(char *lp, char *rp, int flags)
|
|||
|
||||
baud = getiparam("BAUD");
|
||||
costmult = (baud) ? 3840000L / baud : 0;
|
||||
tv.tv_sec = 0;
|
||||
#endif
|
||||
|
||||
/* ZLE doesn't currently work recursively. This is needed in case a *
|
||||
|
@ -523,6 +522,7 @@ zleread(char *lp, char *rp, int flags)
|
|||
#ifdef HAVE_SELECT
|
||||
if (baud && !(lastcmd & ZLE_MENUCMP)) {
|
||||
FD_SET(SHTTY, &foofd);
|
||||
tv.tv_sec = 0;
|
||||
if ((tv.tv_usec = cost * costmult) > 500000)
|
||||
tv.tv_usec = 500000;
|
||||
if (!kungetct && select(SHTTY+1, (SELECT_ARG_2_T) & foofd,
|
||||
|
|
Loading…
Reference in a new issue