New command: i_alternate, go to last image, issue #65
This commit is contained in:
10
commands.c
10
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);
|
||||
|
Reference in New Issue
Block a user