summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2015-04-05 10:03:32 +0200
committerYorhel <git@yorhel.nl>2015-04-05 10:03:32 +0200
commit9e549b0319ffd9ae844a0a7e8b094ca4fb13e368 (patch)
tree4cef92c5b44cde8571eb49de9d1cd561bfe964ff
parent61a7846c767d7082293d0c7cbe88bedde3059740 (diff)
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.
-rw-r--r--src/browser.c4
1 files changed, 4 insertions, 0 deletions
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;
}