diff options
author | Bert Münnich <ber.t@posteo.de> | 2014-08-17 20:27:01 +0200 |
---|---|---|
committer | Bert Münnich <ber.t@posteo.de> | 2014-08-17 20:27:01 +0200 |
commit | 1094def1833c19b4fcb84954f2ae2aaf36dd7a5f (patch) | |
tree | 942d3849027e2e870a13d89dae8468ac0de4bf91 /commands.c | |
parent | 50652f63d99c9ff540fac4c72b0422660bdb3dab (diff) | |
download | nsxiv-1094def1833c19b4fcb84954f2ae2aaf36dd7a5f.tar.zst |
Added command to remove all image marks, bound to Ctrl-m; fixes issue #163
Diffstat (limited to 'commands.c')
-rw-r--r-- | commands.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -215,6 +215,18 @@ bool cg_reverse_marks(arg_t a) return true; } +bool cg_unmark_all(arg_t a) +{ + int i; + + for (i = 0; i < filecnt; i++) + files[i].marked = false; + markcnt = 0; + if (mode == MODE_THUMB) + tns.dirty = true; + return true; +} + bool cg_navigate_marked(arg_t a) { long n = (long) a; |