]> granicus.if.org Git - mutt/commitdiff
Add an error message for <descend-directory>.
authorKevin McCarthy <kevin@8t8.us>
Sat, 2 Feb 2019 23:35:34 +0000 (15:35 -0800)
committerKevin McCarthy <kevin@8t8.us>
Sat, 2 Feb 2019 23:35:34 +0000 (15:35 -0800)
Don't allow the operation on a non-directory.  Print a message
indicating it's not a directory.

browser.c

index daafce9fc6cf2006d1d13b84a13b57df02f0292f..cf2ffbf86514011bb5fddab5fa8f2d4be3a9a8b6 100644 (file)
--- 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)
        {