From daba2128fcf5e6406339c1ba2fb9e0138034cdc0 Mon Sep 17 00:00:00 2001 From: Yorhel <git@yorhel.nl> Date: Sun, 19 Apr 2009 10:06:33 +0200 Subject: [PATCH] Don't quit ncdu when pressing 'q' while the info window is shown Just hide the info window in that case. --- src/browser.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/browser.c b/src/browser.c index 3c7a86b..ff99847 100644 --- a/src/browser.c +++ b/src/browser.c @@ -426,7 +426,11 @@ int browse_key(int ch) { /* and other stuff */ case 'q': - return 1; + if(flags & BF_INFO) + nonfo++; + else + return 1; + break; case 'g': if(++graph > 3) graph = 0; -- GitLab