1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-20 05:53:52 +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

@ -1,5 +1,8 @@
2000-11-08 Sven Wischnowsky <wischnow@zsh.org>
* ?????: Src/Modules/zpty.c: use possible read character from
read_poll() in loop in ptyread()
* 13128: Completion/Builtins/_zstyle, Completion/Core/_match,
Completion/Core/_path_files, Doc/Zsh/compsys.yo: aloow value
`pattern' for insert-unambiguous style to preserve patterns in the

@ -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) {