nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit c3a53cffbcf0c25706ba9cc5f3368c35c50b2467
parent aeea83703b030213f987b65690dc06aeffb2c15d
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sun, 13 Feb 2022 12:19:16 +0100

tweaks: rename a variable, to be more fitting

It is about width (cells/columns), not about length (bytes).

Diffstat:
Msrc/browser.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/browser.c b/src/browser.c @@ -53,12 +53,12 @@ void read_the_list(const char *path, DIR *dir) longest = 0; - /* Find the length of the longest filename in the current folder. */ + /* Find the width of the widest filename in the current folder. */ while ((entry = readdir(dir)) != NULL) { - size_t name_len = breadth(entry->d_name); + size_t span = breadth(entry->d_name); - if (name_len > longest) - longest = name_len; + if (span > longest) + longest = span; index++; }