diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-07-09 07:31:12 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-07-09 07:31:12 +0800 |
commit | 9dba67b527c8257165787758cd7e5a4b3804ca9a (patch) | |
tree | d1b13de280a377fe5adeb0e254bfc1130becdce6 | |
parent | 6c6322185d176b2f90657f1c2f962e185fffa2f0 (diff) | |
download | pttbbs-9dba67b527c8257165787758cd7e5a4b3804ca9a.tar pttbbs-9dba67b527c8257165787758cd7e5a4b3804ca9a.tar.gz pttbbs-9dba67b527c8257165787758cd7e5a4b3804ca9a.tar.bz2 pttbbs-9dba67b527c8257165787758cd7e5a4b3804ca9a.tar.lz pttbbs-9dba67b527c8257165787758cd7e5a4b3804ca9a.tar.xz pttbbs-9dba67b527c8257165787758cd7e5a4b3804ca9a.tar.zst pttbbs-9dba67b527c8257165787758cd7e5a4b3804ca9a.zip |
* tree selection in announce: do not enter last entry (simply move to it)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@4731 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/announce.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pttbbs/mbbsd/announce.c b/pttbbs/mbbsd/announce.c index ed1e7cea..50a381d1 100644 --- a/pttbbs/mbbsd/announce.c +++ b/pttbbs/mbbsd/announce.c @@ -1263,9 +1263,9 @@ a_menu_rec(const char *maintitle, const char *path, } } - if (preselect) + if (preselect && *preselect && preselect[1]) { - // enter if preselect is folder + // if this is not the last preselect entry, enter it ch = KEY_ENTER; } else { ch = cursor_key(2 + me.now - me.page, 0); @@ -1275,6 +1275,7 @@ a_menu_rec(const char *maintitle, const char *path, break; // maybe we should let 1-9=simple search and z=tree-search + // TODO let 'z' prefix means 'back to root' if ((ch >= '1' && ch <= '9') || ch == 'z' || ch == 'Q') { int n = a_multi_search_num(isascii(ch) && isdigit(ch) ? ch : '\0', sess); me.page = A_INVALID_PAGE; |