summaryrefslogtreecommitdiffstats
path: root/commands.c
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2018-02-18 13:16:00 +0100
committerBert Münnich <ber.t@posteo.de>2018-02-18 14:12:41 +0100
commit762420cdf135a9a8381d43b074aa8f286bc4902e (patch)
tree930d148dad7df7671f1e3e63c695d38fd469a871 /commands.c
parent41248571373f28a7cbeab6add6b2b21f68ef9bb5 (diff)
downloadnsxiv-762420cdf135a9a8381d43b074aa8f286bc4902e.tar.zst
Close image-info explicitly
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/commands.c b/commands.c
index 4ad4e04..360b771 100644
--- a/commands.c
+++ b/commands.c
@@ -27,6 +27,7 @@
void remove_file(int, bool);
void load_image(int);
+void close_info(void);
void open_info(void);
int ptr_third_x(void);
void redraw(void);
@@ -98,9 +99,11 @@ bool cg_toggle_bar(arg_t _)
{
win_toggle_bar(&win);
if (mode == MODE_IMAGE) {
- img.checkpan = img.dirty = true;
if (win.bar.h > 0)
open_info();
+ else
+ close_info();
+ img.checkpan = img.dirty = true;
} else {
tns.dirty = true;
}