aboutsummaryrefslogtreecommitdiffstats
path: root/fbi.c
diff options
context:
space:
mode:
authorStéphane Aulery <lkppo@free.fr>2012-01-12 02:03:52 +0100
committerGerd Hoffmann <kraxel@redhat.com>2012-01-17 09:36:24 +0100
commit92744db63979c75138779e816a9290057fa92f11 (patch)
treed5f4362893ede658bda8dd6aeb08f10e433edfa3 /fbi.c
parentf66d5fd21f83b3c041cd032effcccec20de52184 (diff)
downloadfbida-92744db63979c75138779e816a9290057fa92f11.tar.gz
Fix usage of j and k commands
* fbi.man: fix small typos and indicate missed j and k commands * fbi.c: exchange j and k commands to obtain a more natural/expected control (vim like).
Diffstat (limited to 'fbi.c')
-rw-r--r--fbi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fbi.c b/fbi.c
index bcac299..547c1d0 100644
--- a/fbi.c
+++ b/fbi.c
@@ -944,8 +944,8 @@ svga_show(struct flist *f, struct flist *prev,
f->left += h_steps;
} else if (0 == strcmp(key, "\x1b[5~") ||
- 0 == strcmp(key, "j") ||
- 0 == strcmp(key, "J")) {
+ 0 == strcmp(key, "k") ||
+ 0 == strcmp(key, "K")) {
if (textreading && f->top > 0) {
redraw = 1;
f->top -= f->text_steps;
@@ -955,8 +955,8 @@ svga_show(struct flist *f, struct flist *prev,
}
} else if (0 == strcmp(key, "\x1b[6~") ||
- 0 == strcmp(key, "k") ||
- 0 == strcmp(key, "K") ||
+ 0 == strcmp(key, "j") ||
+ 0 == strcmp(key, "J") ||
0 == strcmp(key, "n") ||
0 == strcmp(key, "N")) {
if (textreading && f->top < (int)(img->i.height - fb_var.yres)) {