summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2012-03-01 22:50:54 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2012-03-01 22:50:54 +0800
commit237b57fc60e2b9ba690420023004877d93365ab5 (patch)
tree91fd6f7c6ce0d13296fa0dd0aeb62a236b4cf3b0
parent48123f1dceac632d724f328bbf118f9a8aceabb2 (diff)
downloadpttbbs-237b57fc60e2b9ba690420023004877d93365ab5.tar
pttbbs-237b57fc60e2b9ba690420023004877d93365ab5.tar.gz
pttbbs-237b57fc60e2b9ba690420023004877d93365ab5.tar.bz2
pttbbs-237b57fc60e2b9ba690420023004877d93365ab5.tar.lz
pttbbs-237b57fc60e2b9ba690420023004877d93365ab5.tar.xz
pttbbs-237b57fc60e2b9ba690420023004877d93365ab5.tar.zst
pttbbs-237b57fc60e2b9ba690420023004877d93365ab5.zip
Disable Ctrl-D in search mode.
Just like single delete (d), deletion inside search mode would cause .DIR out-of-sync. git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5578 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/read.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/read.c b/pttbbs/mbbsd/read.c
index 516ae291..1999d82a 100644
--- a/pttbbs/mbbsd/read.c
+++ b/pttbbs/mbbsd/read.c
@@ -991,7 +991,12 @@ i_read_key(const onekey_t * rcmdlist, keeploc_t * locmem,
break;
case Ctrl('D'):
- mode = TagPruner(bid);
+ if (currmode & MODE_SELECT) {
+ vmsg("請先離開搜尋模式(T標記會保留)再刪除檔案。");
+ mode = FULLUPDATE;
+ } else {
+ mode = TagPruner(bid);
+ }
break;
case KEY_ENTER: