From 9e549b0319ffd9ae844a0a7e8b094ca4fb13e368 Mon Sep 17 00:00:00 2001 From: Yorhel <git@yorhel.nl> Date: Sun, 5 Apr 2015 10:03:32 +0200 Subject: [PATCH] Disable shell feature on imported file Can cause too much confusion otherwise; The imported data may not at all reflect the filesystem that ncdu has access to. --- src/browser.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/browser.c b/src/browser.c index 7fe43a3..3c2cfd3 100644 --- a/src/browser.c +++ b/src/browser.c @@ -429,6 +429,10 @@ int browse_key(int ch) { delete_init(sel, t); break; case 'b': + if(dir_import_active) { + message = "Shell feature not available for imported directories."; + break; + } shell_init(); break; } -- GitLab