summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-04-19 10:06:33 +0200
committerYorhel <git@yorhel.nl>2009-04-19 10:06:33 +0200
commitdaba2128fcf5e6406339c1ba2fb9e0138034cdc0 (patch)
treeb6d71334772dd711550760e5b258fcfe49ffa032
parent6568a962bcbef31458243dbe401e735ad067e13e (diff)
Don't quit ncdu when pressing 'q' while the info window is shown
Just hide the info window in that case.
-rw-r--r--src/browser.c6
1 files changed, 5 insertions, 1 deletions
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;