Handle character following : better. [rsc] --rw-rw-r-- M 431581 presotto sys 18532 Oct 29 10:05 sys/src/cmd/cb/cb.c /n/sourcesdump/2005/1029/plan9/sys/src/cmd/cb/cb.c:52,62 - /n/sourcesdump/2005/1030/plan9/sys/src/cmd/cb/cb.c:52,62 exits(0); } void - work(void){ - int c; + work(void) + { + int c, cc; struct keyw *lptr; char *pt; - char cc; int ct; while ((c = getch()) != Beof){ /n/sourcesdump/2005/1029/plan9/sys/src/cmd/cb/cb.c:471,476 - /n/sourcesdump/2005/1030/plan9/sys/src/cmd/cb/cb.c:471,477 putch(cc,NO); continue; } + unget(cc); if (question == 1){ question = 0; gotop(c);