Krolyxon
Commit a3838c1

Branches

Refs →

nsxiva3838c1

Always run image-info script after key-handler in image mode; fixes issue #213

Author
Bert Münnich
Date
2015-08-19 21:29 +0200
Parent
d8114e8
Commit
a3838c19841af4cc721121469d178236697df462

+4 −4

2 files changed

  1. M Makefile +1 −1
  2. M main.c +3 −3
M Makefile View
@@ -1,4 +1,4 @@
1−VERSION := git-20150722
1+VERSION := git-20150819
22
33 PREFIX := /usr/local
44 MANPREFIX := $(PREFIX)/share/man
M main.c View
@@ -491,7 +491,7 @@ void run_key_handler(const char *key, unsigned int mask)
491491 bool changed = false;
492492 int f, i, pfd[2], retval, status;
493493 int fcnt = marked ? markcnt : 1;
494− char kstr[32], oldbar[BAR_L_LEN];
494+ char kstr[32];
495495 struct stat *oldst, st;
496496
497497 if (keyhandler.cmd == NULL) {
@@ -515,7 +515,6 @@ void run_key_handler(const char *key, unsigned int mask)
515515 }
516516 oldst = s_malloc(fcnt * sizeof(*oldst));
517517
518− memcpy(oldbar, win.bar.l.buf, sizeof(oldbar));
519518 strncpy(win.bar.l.buf, "Running key handler...", win.bar.l.size);
520519 win_draw(&win);
521520 win_set_cursor(&win, CURSOR_WATCH);
@@ -572,7 +571,8 @@ end:
572571 img_close(&img, true);
573572 load_image(fileidx);
574573 } else if (info.cmd != NULL) {
575− memcpy(win.bar.l.buf, oldbar, win.bar.l.size);
574+ info.open = false;
575+ open_info();
576576 }
577577 }
578578 free(oldst);