summaryrefslogtreecommitdiffstats
path: root/mbbsd/pmore.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-09 17:32:14 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-09 17:32:14 +0800
commit0e42926d72a2c2d11ab4c5606b680d5d79604939 (patch)
treee3968194d76f01fa5a9c844c77af243744ce3694 /mbbsd/pmore.c
parentb7c0c5ed4342ac1298fade8eab8ac9885ea09e0e (diff)
downloadpttbbs-0e42926d72a2c2d11ab4c5606b680d5d79604939.tar
pttbbs-0e42926d72a2c2d11ab4c5606b680d5d79604939.tar.gz
pttbbs-0e42926d72a2c2d11ab4c5606b680d5d79604939.tar.bz2
pttbbs-0e42926d72a2c2d11ab4c5606b680d5d79604939.tar.lz
pttbbs-0e42926d72a2c2d11ab4c5606b680d5d79604939.tar.xz
pttbbs-0e42926d72a2c2d11ab4c5606b680d5d79604939.tar.zst
pttbbs-0e42926d72a2c2d11ab4c5606b680d5d79604939.zip
- pmore: change RIGHT key reaching end behavior back to original style
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4114 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/pmore.c')
-rw-r--r--mbbsd/pmore.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c
index 5da1edbd..f4c2fdc4 100644
--- a/mbbsd/pmore.c
+++ b/mbbsd/pmore.c
@@ -73,6 +73,7 @@
#define PMORE_HAVE_NUMINBUF // input system have num_in_buf API
#define PMORE_IGNORE_UNKNOWN_NAVKEYS // does not return for all unknown keys
//#define PMORE_AUTONEXT_ON_PAGEFLIP // change file when page up/down reaches end
+//#define PMORE_AUTONEXT_ON_RIGHTKEY // change file to next for right key
//#define PMORE_RESTRICT_ANSI_MOVEMENT // user cannot use ANSI escapes to move
#define PMORE_ACCURATE_WRAPEND // try more harder to find file end in wrap mode
#define PMORE_TRADITIONAL_PROMPTEND // when prompt=NA, show only page 1
@@ -178,6 +179,7 @@
#undef PMORE_HAVE_NUMINBUF
#undef PMORE_IGNORE_UNKNOWN_NAVKEYS
#define PMORE_AUTONEXT_ON_PAGEFLIP
+ #define PMORE_AUTONEXT_ON_RIGHTKEY
#ifndef SHOW_USER_IN_TEXT
# undef PMORE_EXPAND_ESC_STAR
#endif // SHOW_USER_IN_TEXT
@@ -2408,9 +2410,17 @@ pmore(char *fpath, int promptend)
PMORE_UINAV_FORWARDPAGE();
break;
case KEY_RIGHT:
- // returning READ_NEXT maybe better for RIGHT key.
if(mf_viewedAll())
- promptend = 0, flExit = 1, retval = READ_NEXT;
+ {
+ // returning READ_NEXT maybe better for RIGHT key.
+ // but many people are already used to pmore style...
+ promptend = 0, flExit = 1;
+#ifdef PMORE_AUTONEXT_ON_RIGHTKEY
+ retval = READ_NEXT;
+#else
+ retval = 0;
+#endif // PMORE_AUTONEXT_ON_RIGHTKEY
+ }
else
{
/* if mf.xpos > 0, widenav mode. */