diff --git a/src/wildcard.cpp b/src/wildcard.cpp index c71af48d9..9a7a41eb7 100644 --- a/src/wildcard.cpp +++ b/src/wildcard.cpp @@ -487,7 +487,7 @@ static bool wildcard_test_flags_then_complete(const wcstring &filepath, const wc if (expand_flags & expand_flag::gen_descriptions) { desc = file_get_desc(lstat_res, lstat_buf, stat_res, stat_buf, stat_errno); - if (!is_directory && file_size >= 0) { + if (!is_directory && !is_executable && file_size >= 0) { if (!desc.empty()) desc.append(L", "); desc.append(format_size(file_size)); } diff --git a/src/wildcard.h b/src/wildcard.h index bd244bf89..daa42110f 100644 --- a/src/wildcard.h +++ b/src/wildcard.h @@ -10,9 +10,9 @@ #include "expand.h" /// Description for generic executable. -#define COMPLETE_EXEC_DESC _(L"executable") +#define COMPLETE_EXEC_DESC _(L"command") /// Description for link to executable. -#define COMPLETE_EXEC_LINK_DESC _(L"executable link") +#define COMPLETE_EXEC_LINK_DESC _(L"command link") /// Description for character device. #define COMPLETE_CHAR_DESC _(L"char device") /// Description for block device.