summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-03-08 22:51:37 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-03-08 22:51:37 +0800
commitb4021c3a39db31093577a29a75d2ad39252baf9e (patch)
tree7fea4b09559a1d6e254ea051757bce63e8c03bc8 /mbbsd
parent17ff995a3907a704417d40f3259624e8cb89ec06 (diff)
downloadpttbbs-b4021c3a39db31093577a29a75d2ad39252baf9e.tar
pttbbs-b4021c3a39db31093577a29a75d2ad39252baf9e.tar.gz
pttbbs-b4021c3a39db31093577a29a75d2ad39252baf9e.tar.bz2
pttbbs-b4021c3a39db31093577a29a75d2ad39252baf9e.tar.lz
pttbbs-b4021c3a39db31093577a29a75d2ad39252baf9e.tar.xz
pttbbs-b4021c3a39db31093577a29a75d2ad39252baf9e.tar.zst
pttbbs-b4021c3a39db31093577a29a75d2ad39252baf9e.zip
- board: 's' - remove the global search after empty input (because we cannot really enter board yet).
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3979 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/board.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index cafdf4a0..d42d0033 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -1533,10 +1533,19 @@ choose_board(int newflag)
show_brdlist(head, 0, newflag);
break;
case 's':
- if ((tmp = search_board()) == -1) {
- Select();
+ if ((tmp = search_board()) != -1) {
+ head = -1;
+ num = tmp;
break;
}
+ // TODO try global search?
+ // TODO entering boards is now too complex...
+ // please refine the code.
+ //
+ // if (Select() != NEWDIRECT) {
+ // }
+
+ // update screen
head = -1;
num = tmp;
break;