diff options
Diffstat (limited to 'commands.c')
-rw-r--r-- | commands.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -46,6 +46,7 @@ extern win_t win; extern fileinfo_t *files; extern int filecnt, fileidx; +extern int alternate; extern int prefix; @@ -155,6 +156,15 @@ bool i_navigate(arg_t a) { return false; } +bool i_alternate(arg_t a) { + if (mode == MODE_IMAGE) { + load_image(alternate); + return true; + } else { + return false; + } +} + bool it_first(arg_t a) { if (mode == MODE_IMAGE && fileidx != 0) { load_image(0); |