diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-19 20:29:22 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-19 20:29:22 +0800 |
commit | 1c3f11034b11cb841f6188841d4b1222314d5757 (patch) | |
tree | 29cfc11ee809d008223dd4bfe46463073d97cfeb /mbbsd/board.c | |
parent | a0644143f445ad0103809814f3b4e75356dadcc3 (diff) | |
download | pttbbs-1c3f11034b11cb841f6188841d4b1222314d5757.tar pttbbs-1c3f11034b11cb841f6188841d4b1222314d5757.tar.gz pttbbs-1c3f11034b11cb841f6188841d4b1222314d5757.tar.bz2 pttbbs-1c3f11034b11cb841f6188841d4b1222314d5757.tar.lz pttbbs-1c3f11034b11cb841f6188841d4b1222314d5757.tar.xz pttbbs-1c3f11034b11cb841f6188841d4b1222314d5757.tar.zst pttbbs-1c3f11034b11cb841f6188841d4b1222314d5757.zip |
- make ZA system complete.
- elimiate minor warning
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4205 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/board.c')
-rw-r--r-- | mbbsd/board.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c index 801d29c6..ad1bc0e6 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -1391,7 +1391,6 @@ choose_board(int newflag) ch = cursor_key(3 + num - head, 0); switch (ch) { - /////////////////////////////////////////////////////// // General Hotkeys /////////////////////////////////////////////////////// @@ -1413,6 +1412,15 @@ choose_board(int newflag) show_brdlist(head, 1, newflag); break; + // ZA + case Ctrl('Z'): + head = -1; + if (ZA_Select()) + ch = 'q'; + else + break; + // if selected, follow q. + case 'e': case KEY_LEFT: case EOF: @@ -1937,7 +1945,7 @@ choose_board(int newflag) break; } - } while (ch != 'q'); + } while (ch != 'q' && !ZA_Waiting()); free(nbrd); nbrd = NULL; nbrdsize = 0; |