From b4021c3a39db31093577a29a75d2ad39252baf9e Mon Sep 17 00:00:00 2001 From: piaip Date: Sat, 8 Mar 2008 14:51:37 +0000 Subject: - 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 --- mbbsd/board.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'mbbsd/board.c') 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; -- cgit v1.2.3