-
-
Notifications
You must be signed in to change notification settings - Fork 625
fix: Fixed "BiB" bug and improved binary prefixes #2492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Fixed "BiB" bug and improved binary prefixes #2492
Conversation
- Now there is a whitespace between value and unit. - Now values >= 1024 YiB are shown in YiB instead of B. - To reuse same code a new local function was added: round().
I also created a separate |
That's fine, round should be private i.e. not a member of utils |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many thanks for your contribution.
Works as intended, space is more readable.
Oh, right, I forgot to mention this (now fixed):
|
Many thanks. I'm quite happy with the results. |
) * fix(#2467): remove newline in git paths * fix: info size suffix and formatting (#2492) - Now there is a whitespace between value and unit. - Now values >= 1024 YiB are shown in YiB instead of B. - To reuse same code a new local function was added: round(). * feat(#2312): fire `TextYankPost` event on path copy (#2489) * feat(#2312): fire `TextYankPost` event on path copy * stylua * Bug fix --------- Co-authored-by: Alexander Courtis <alex@courtis.org> * feat: mapping and options to sort entries in help window (#2482) * feat: add option to sort entries in help window * stylua * Add keymap to toggle sorting methods * Bug fix --------- Co-authored-by: Alexander Courtis <alex@courtis.org> * fix(#2467): remove newline in git paths * fix(#2467): change cygpath calls to array format To avoid shell compatibility issues in msys2 environment on Windows * stylua nit --------- Co-authored-by: Alexander Courtis <alex@courtis.org> Co-authored-by: Andrew Voynov <37143421+Andrew15-5@users.noreply.github.com> Co-authored-by: Azad <49314270+Akmadan23@users.noreply.github.com>
This is a new patch after #2483.
What's new:
I've also added comments to clarify some things. The
round()
function is local, but the plugin works correctly (I thought it wouldn't). I don't know how exactlyM
fromutils.lua
is used, so I didn't doM.round()
.