willdoescode / nat

`ls` alternative with useful info and a splash of color 🎨

Home Page:https://git.io/natls

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Differences of unsigend numbers

Th1nkP1nk opened this issue · comments

There are some calculations with unsigned integers that may lead to unintended behavior.
E.g., try with a group name with less than 5 characters.

draw_headline("group",get_group_by_gid(get_current_gid()).unwrap().name().to_str().unwrap().len() - 5, true);
commented

This should be an easy fix by getting the largest group name size inside the directory and subtracting the length of the current file from it.