summaryrefslogtreecommitdiffstats
path: root/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/commands.c b/commands.c
index 8868091..e742016 100644
--- a/commands.c
+++ b/commands.c
@@ -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);