summaryrefslogtreecommitdiffstats
path: root/mbbsd/pmore.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/pmore.c')
-rw-r--r--mbbsd/pmore.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c
index a5829555..21e65c92 100644
--- a/mbbsd/pmore.c
+++ b/mbbsd/pmore.c
@@ -3085,12 +3085,11 @@ mf_movieGotoFrame(int fno, int relative)
mf_forward(1);
} while (fno > 0);
} else {
- // For backward, the first call moves to beginning of file.
- if (mf_backward(1) < 1)
- return 0;
// backward
- // XXX check if we reached head?
- while (fno < 0)
+ // For backward, the first call moves to beginning of current line
+ // (which is frame header). so the loop should be be (abs(fno)+1),
+ // and that's why use <= here.
+ while (fno <= 0)
{
do {
if (mf_backward(1) < 1)