1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-11-01 18:30:55 +01:00

*** empty log message ***

This commit is contained in:
Sven Wischnowsky 2000-11-08 15:27:54 +00:00
parent e0dc80e0e5
commit 468e3b59dc
2 changed files with 9 additions and 1 deletions

View file

@ -483,7 +483,12 @@ ptyread(char *nam, Ptycmd cmd, char **args)
if (cmd->fin)
break;
}
if ((ret = read(cmd->fd, buf + used, 1)) == 1) {
if (cmd->read != -1 || (ret = read(cmd->fd, buf + used, 1)) == 1) {
if (cmd->read != -1) {
ret = 1;
buf[used] = (char) cmd->read;
cmd->read = -1;
}
seen = 1;
if (++used == blen) {
if (!*args) {