diff options
author | Stéphane Aulery <lkppo@free.fr> | 2012-01-12 02:03:52 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2012-01-17 09:36:24 +0100 |
commit | 92744db63979c75138779e816a9290057fa92f11 (patch) | |
tree | d5f4362893ede658bda8dd6aeb08f10e433edfa3 /fbi.c | |
parent | f66d5fd21f83b3c041cd032effcccec20de52184 (diff) | |
download | fbida-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.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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)) { |