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

View File

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