New command: i_alternate, go to last image, issue #65

This commit is contained in:
Bert Münnich
2012-08-16 13:40:04 +02:00
parent 8a652a786c
commit f2a3d73212
4 changed files with 14 additions and 0 deletions

2
main.c
View File

@ -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;