"Life is all about sharing. If we are good at something, pass it on." - Mary Berry

nnn: wcswidth returns different values for same Unicode code point between macOS and Linux

2023-08-09

Categories: Development Environment

When attempting to integrate nnn with Helix, I encountered an interesting issue that resulted in duplicate first characters in the filename:

nnn duplicate first character in the filename on macOS

What’s interesting is that this issue doesn’t occur on Linux:

nnn on Linux

I’ve spent several days troubleshooting this problem but haven’t been able to identify the root cause. The only solution I could come up with is a workaround, and I must admit, I’m still not entirely satisfied with it.

If you also use nnn and know of a better way to fix this issue without requiring a refresh, please don’t hesitate to let me know. Thank you!

Tags: nnn wcswidth macOS

Edit on GitHub

Related Posts: