Patch for less, page forward
Ralf Friedl
Ralf.Friedl at online.de
Thu Sep 27 13:12:14 UTC 2007
Hi
Could you add the key 'f' for page forward in less?
I'm used to the keys 'f' and 'b' for page forward and backward.
The difference in size should be minimal if different at all.
Most likely the compiler will generate a jump table anyway, so there
would be no difference in the genereted size.
Regards
Ralf Friedl
--- miscutils/less.c
+++ miscutils/less.c
@@ -1135,7 +1135,7 @@
case KEY_UP: case 'y': case 'k':
buffer_up(1);
break;
- case PAGE_DOWN: case ' ': case 'z':
+ case PAGE_DOWN: case ' ': case 'z': case 'f':
buffer_down(max_displayed_line + 1);
break;
case PAGE_UP: case 'w': case 'b':
More information about the busybox
mailing list