Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Tab completion preview thrown off track by unicode filenames #155
I have a dir with a name containing a multi-byte UTF8 character, "namnlös mapp". When I type "cd n", the rest of the name is auto-complete-previewed (yay!). However, instead of the insert point being on "a", as you would expect, it's been moved back to "n". So when I type the second letter of the name, it overwrites the first letter, resulting in the last line of the example.
The deeper problem is that fish has no way of representing that a zero-width character has been output, so the combining marks can get lost very easily.
I rewrote the line representation here to add support. That should fix this.