From 45de6d167db32572e6b679deddff68ccd9744327 Mon Sep 17 00:00:00 2001 From: Aaron Gyes Date: Thu, 4 Nov 2021 06:17:47 -0700 Subject: [PATCH] Remove file size for executables in the pager, and call them commands --- src/wildcard.cpp | 2 +- src/wildcard.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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.