From 45fd0b8bbba0062c3b815e5a09b27aec378ee3a1 Mon Sep 17 00:00:00 2001 From: piaip Date: Sun, 20 Apr 2008 09:23:33 +0000 Subject: - chat: fix key hit (I_OTHERDATA) when doing ZA. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4218 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/chat.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mbbsd/chat.c') diff --git a/mbbsd/chat.c b/mbbsd/chat.c index 0753d8c2..eda0983e 100644 --- a/mbbsd/chat.c +++ b/mbbsd/chat.c @@ -305,10 +305,12 @@ _vgetcb_peek(int key, char *buf, int *picurr, int *piend, int len, void *ptr) { int za = 0; VREFCUR cur = vcur_save(); + add_io(0, 0); za = ZA_Select(); move(b_lines, 0); clrtoeol(); vcur_restore(cur); + add_io(p->cfd, 0); if (za) return VGETCB_ABORT; return VGETCB_NEXT; @@ -438,8 +440,10 @@ t_chat(void) { // process ZA VREFSCR scr = vscr_save(); + add_io(0, 0); ZA_Enter(); vscr_restore(scr); + add_io(cfd, 0); } print_chatid(chatid); clrtobot(); move(b_lines-1, chatid_len); -- cgit v1.2.3