summaryrefslogtreecommitdiffstats
path: root/browser.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2019-02-02 15:35:34 -0800
committerKevin McCarthy <kevin@8t8.us>2019-02-02 15:35:34 -0800
commit140b7ae3afb858bf53cf72a61099554b25a6f3d6 (patch)
tree7610bfcdf7997114b6882a6ce1bfd26f1709340d /browser.c
parent8a7639766010075ae73dcad80108ac1301f2f1d4 (diff)
Add an error message for <descend-directory>.
Don't allow the operation on a non-directory. Print a message indicating it's not a directory.
Diffstat (limited to 'browser.c')
-rw-r--r--browser.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/browser.c b/browser.c
index daafce9f..cf2ffbf8 100644
--- a/browser.c
+++ b/browser.c
@@ -900,6 +900,11 @@ void _mutt_select_file (char *f, size_t flen, int flags, char ***files, int *num
break;
}
}
+ else if (op == OP_DESCEND_DIRECTORY)
+ {
+ mutt_error (_("%s is not a directory."), state.entry[menu->current].name);
+ break;
+ }
if (buffy)
{