fix socket bug with undo char.

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2053 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
vsc 2008-01-14 18:08:24 +00:00
parent 535a43245d
commit b677c030de
1 changed files with 4 additions and 0 deletions

View File

@ -1562,6 +1562,10 @@ PlUnGetc (int sno)
s->stream_getc = MemGetc;
s->stream_putc = MemPutc;
s->stream_wputc = put_wchar;
} else if (s->status & Socket_Stream_f) {
s->stream_getc = SocketGetc;
s->stream_putc = SocketPutc;
s->stream_wputc = put_wchar;
} else if (s->status & Promptable_Stream_f) {
s->stream_putc = ConsolePutc;
s->stream_wputc = put_wchar;