summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorBert Münnich <be.muennich@googlemail.com>2012-08-16 13:40:04 +0200
committerBert Münnich <be.muennich@googlemail.com>2012-08-16 13:40:04 +0200
commitf2a3d73212ad63e1081278347c189f2554cab8a4 (patch)
tree150d3afcf0ff699e153f7b537c30769aede35968 /main.c
parent8a652a786c2edc5f630d6f032d8ef775cdea9142 (diff)
downloadnsxiv-f2a3d73212ad63e1081278347c189f2554cab8a4.tar.zst
New command: i_alternate, go to last image, issue #65
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index 2483d10..5f8a0ca 100644
--- a/main.c
+++ b/main.c
@@ -62,6 +62,7 @@ win_t win;
fileinfo_t *files;
int filecnt, fileidx;
+int alternate;
size_t filesize;
int prefix;
@@ -217,6 +218,7 @@ void load_image(int new) {
}
files[new].loaded = true;
+ alternate = fileidx;
fileidx = new;
if (stat(files[new].path, &fstats) == 0)
filesize = fstats.st_size;