diff --git a/doc/ncdu.1 b/doc/ncdu.1 index 4f7836fa0b76b2cd55fd9325db20a189700b75db..f026816d9e927ea56ca1f6770d1c2a5afbc82a1b 100644 --- a/doc/ncdu.1 +++ b/doc/ncdu.1 @@ -113,11 +113,11 @@ Use powers of 1000 instead of 1024, press again to switch back .TP .B h -Show/Hide 'hidden' files and directories. Please note that even though -you can't see the hidden files and directories, they are still there -and they are still included in the directory sizes. If you suspect that -the totals shown at the bottom of the screen are not correct, make sure -you haven't enabled this option. +Show/hide 'hidden' or 'excluded' files and directories. Please note that +even though you can't see the hidden files and directories, they are still +there and they are still included in the directory sizes. If you suspect +that the totals shown at the bottom of the screen are not correct, make +sure you haven't enabled this option. .TP .B q diff --git a/src/browser.c b/src/browser.c index ee93404df2c4c143deff63dbe7fea14417b84fe8..430deb03e3418d129dd958b9af8651349418d329 100644 --- a/src/browser.c +++ b/src/browser.c @@ -121,7 +121,10 @@ char *graph(off_t max, off_t size) { } -#define exlhid(x) if(bflags & BF_HIDE && !(x->flags & FF_PAR) && x->name[0] == '.') { i--; continue; } +#define exlhid(x) if(bflags & BF_HIDE && (\ + (!(x->flags & FF_PAR) && x->name[0] == '.')\ + || x->flags & FF_EXL)\ + ) { i--; continue; } void drawBrowser(int change) { struct dir *n; diff --git a/src/help.c b/src/help.c index 98331f0164d2867c843e6fb9e2db4c7db5d1f7f1..a5e9ac717e8682e8305c04070df05eab561414e6 100644 --- a/src/help.c +++ b/src/help.c @@ -63,7 +63,7 @@ void drawHelp(int page) { mvwaddstr(hlp, 8, 16, "Toggle dirs before files when sorting"); mvwaddstr(hlp, 9, 16, "Show percentage and/or graph"); mvwaddstr(hlp,10, 16, "Toggle between powers of 1000 and 1024"); - mvwaddstr(hlp,11, 16, "Show/hide hidden files"); + mvwaddstr(hlp,11, 16, "Show/hide hidden or excluded files"); mvwaddstr(hlp,12, 16, "Quit ncdu"); break; case 2: