summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-01-31 16:06:40 +0100
committerBert <ber.t@gmx.com>2011-01-31 16:06:40 +0100
commit5a682426b128fd33bd76f466831a9a36e80e1c2c (patch)
treeeb3a95a2b35427ec605c2773a0d374a089cea269 /main.c
parentb1ce42edf5fd61239e8a774eea96fbe3300b3cf3 (diff)
downloadnsxiv-5a682426b128fd33bd76f466831a9a36e80e1c2c.tar.zst
New key command: r, reload image
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.c b/main.c
index 4771cd9..96cf10e 100644
--- a/main.c
+++ b/main.c
@@ -235,6 +235,9 @@ void on_keypress(XEvent *ev) {
case XK_a:
changed = img_toggle_antialias(&img);
break;
+ case XK_r:
+ changed = img_load(&img, filenames[fileidx]);
+ break;
}
if (changed) {