summaryrefslogtreecommitdiffstats
path: root/mbbsd/pmore.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-06-03 13:37:53 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-06-03 13:37:53 +0800
commite54da55d38740052b44977f5892481b684994d12 (patch)
tree74dd23daf1d78c2d163de9582df4a7b236b4a64d /mbbsd/pmore.c
parent2e1ce0de7d1db7c7f510cfee754c7d1e7f6b8d56 (diff)
downloadpttbbs-e54da55d38740052b44977f5892481b684994d12.tar
pttbbs-e54da55d38740052b44977f5892481b684994d12.tar.gz
pttbbs-e54da55d38740052b44977f5892481b684994d12.tar.bz2
pttbbs-e54da55d38740052b44977f5892481b684994d12.tar.lz
pttbbs-e54da55d38740052b44977f5892481b684994d12.tar.xz
pttbbs-e54da55d38740052b44977f5892481b684994d12.tar.zst
pttbbs-e54da55d38740052b44977f5892481b684994d12.zip
(fix r2742) there was no typo in users.c
(pmore) fix search display bug in scroll mode(should be refreshed) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2745 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/pmore.c')
-rw-r--r--mbbsd/pmore.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c
index 8e902794..0380843e 100644
--- a/mbbsd/pmore.c
+++ b/mbbsd/pmore.c
@@ -48,6 +48,7 @@ enum {
#define ANSI_ESC (0x1b)
#define RESETMF() { memset(&mf, 0, sizeof(mf)); mf.oldlineno = -1; }
#define RESETAH() { memset(&ah, 0, sizeof(ah)); }
+#define MFDISP_DIRTY() { mf.oldlineno = -1; }
/* search records */
typedef struct
@@ -274,6 +275,8 @@ int mf_search(int direction)
mf.disps = mf.start;
mf_sync_lineno();
}
+ if(flFound)
+ MFDISP_DIRTY();
return flFound;
}