summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mbbsd/pmore.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c
index 59066e68..0ff07c3a 100644
--- a/mbbsd/pmore.c
+++ b/mbbsd/pmore.c
@@ -2931,8 +2931,14 @@ mf_movieOptionHandler(unsigned char *opt, unsigned char *end)
if (optclk > 0)
{
// timed interaction
+
+ // disable optkeys to allow masked input
+ unsigned char *tmpopt = mfmovie.optkeys;
+ mfmovie.optkeys = NULL;
+
mf_float2tv(optclk, &tv);
c = pmore_wait_key(&tv, 1);
+ mfmovie.optkeys = tmpopt;
// if timeout, drop.
if (!c)
@@ -3087,7 +3093,12 @@ mf_movieProcessCommand(unsigned char *p, unsigned char *end)
while (p < end && *p != '\n' && *p != '#')
p++;
- if (*p == '#') p++;
+ if (*p == '#')
+ {
+ p++;
+ }
+ // continue will increase p
+ p--;
continue;
}
MOVIECMD_SKIP_ALL(p,end);