summaryrefslogtreecommitdiffstats
path: root/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/commands.c b/commands.c
index 7562bd1..49298bf 100644
--- a/commands.c
+++ b/commands.c
@@ -251,6 +251,17 @@ bool it_toggle_image_mark(arg_t a)
return true;
}
+bool it_reverse_marks(arg_t a)
+{
+ int i, cnt = mode == MODE_IMAGE ? filecnt : tns.cnt;
+
+ for (i = 0; i < cnt; i++)
+ files[i].marked = !files[i].marked;
+ if (mode == MODE_THUMB)
+ tns.dirty = true;
+ return true;
+}
+
bool it_navigate_marked(arg_t a)
{
long n = (long) a;