Remove file size for executables in the pager, and call them commands

This commit is contained in:
Aaron Gyes 2021-11-04 06:17:47 -07:00
parent 57995abb03
commit 45de6d167d
2 changed files with 3 additions and 3 deletions

View File

@ -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));
}

View File

@ -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.