After reaching the end of the more prompt, hitting SPACE jumps out of
it. Add 'f' to avoid this problem and for consistency with 'b' in
"scroll back a screen".
The first patch was bad, it did jump out of the more prompt when
pressing 'f' at the end of it, this is fixed now.
---
runtime/doc/message.txt | 2 +-
src/message.c | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/runtime/doc/message.txt b/runtime/doc/message.txt
index dc772c7..4f31e2f 100644
--- a/runtime/doc/message.txt
+++ b/runtime/doc/message.txt
@@ -795,7 +795,7 @@ group.
Type effect ~
<CR> or <NL> or j or <Down> one more line
d down a page (half a screen)
- <Space> or <PageDown> down a screen
+ <Space> or f or <PageDown> down a screen
G down all the way, until the hit-enter
prompt
diff --git a/src/message.c b/src/message.c
index e0f2897..d37a4b9 100644
--- a/src/message.c
+++ b/src/message.c
@@ -976,7 +976,8 @@ wait_return(redraw)
}
}
else if (msg_scrolled > Rows - 2
- && (c == 'j' || c == K_DOWN || c == 'd'))
+ && (c == 'j' || c == K_DOWN || c == 'd'
+ || c == 'f'))
c = K_IGNORE;
}
} while ((had_got_int && c == Ctrl_C)
@@ -2517,6 +2518,7 @@ do_more_prompt(typed_char)
break;
case ' ': /* one extra page */
+ case 'f':
case K_PAGEDOWN:
case K_LEFTMOUSE:
scroll = Rows - 1;
--
1.6.2.rc0.93.g1228
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---