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
table
produces subtraction overflow
#12786
Comments
Hi there. Very interesting catch; So I did reproduce, and located issue, that is related to wrapping. |
Kind of related; We probably could provide a user predefined set of widths estimations per terminal. What I mean is just define a map of space UTF-8 symbol takes per terminal, and relay on this when making calculation of space rather then default approach. Yes it would be it a bit slower just to check if the symbol is in the map. It might has not a lot of sense, Anyhow. |
Hey @zhiburt! Thanks for looking into this. I'm wondering if fish-shell's https://github.com/fish-shell/fish-shell/blob/master/src/widecharwidth/widechar_width.rs would help here. I'm not sure if it covers the entire utf-8 symbol space but it may be worth a look. |
Describe the bug
@zhiburt While troubleshooting my
emoji
plugin, I noticed that it hangs ifskin_tones
column is shown.How to reproduce
Alternate Repro
devyn just figured out we could reproduce the error with
emoji --list | select emoji name skin_tones | save emoji.json
and then try toopen emoji.json
and you get the same error.emoji.json
Original Repro (harder to do)
emoji :smirk:
and see that it worksemoji --list
, if your terminal window is small and not showing theskin_tones
column, it should work.emoji --list | select emoji name skin_tones
to forceskin_tones
column to show. It should hang and not show anything.Further testing
This works
emoji --list | where shortcodes =~ wave
so it's not just about the skin_tones column but some specific data.@devyn has been helping me troubleshoot and produced this
and this by building in debug mode
Expected behavior
Show all the columns
Screenshots
No response
Configuration
Additional context
No response
The text was updated successfully, but these errors were encountered: