comparison nnchat.c @ 298:0119bcc15f15 dev-0_9_1

Another unhandled key warning disabled when debug mode not enabled.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 11 Jun 2011 03:56:35 +0300
parents d34910f1b1e1
children 388c22d6ab44
comparison
equal deleted inserted replaced
297:d34910f1b1e1 298:0119bcc15f15
1732 else 1732 else
1733 nn_editbuf_write(editBuf, editBuf->pos, c); 1733 nn_editbuf_write(editBuf, editBuf->pos, c);
1734 nn_editbuf_setpos(editBuf, editBuf->pos + 1); 1734 nn_editbuf_setpos(editBuf, editBuf->pos + 1);
1735 update = TRUE; 1735 update = TRUE;
1736 } else { 1736 } else {
1737 printMsg(currWin, "Unhandled key: 0x%02x\n", c); 1737 if (optDebug)
1738 printMsg(currWin, "Unhandled key: 0x%02x\n", c);
1738 } 1739 }
1739 break; 1740 break;
1740 } 1741 }
1741 } while (c != ERR && !exitProg && ++cnt < 10); 1742 } while (c != ERR && !exitProg && ++cnt < 10);
1742 1743