zee-editor/zee

[Bug] Visual Width of Tab Characters in Edge Cases

kevinmatthes opened this issue · 2 comments

Most languages in the config.ron are configured to indent using spaces, at the moment. When opening a file indented by tabs in a language configured to indent by spaces, the tab characters are displayed with visual width one instead of the configured width. Since other editors apply the configured width onto tabs visually, I would consider this a bug.

iainh commented

Kevin,

Have a look at PR #72, in my testing this change fixed the issue if I've understood the description. The problem as I see it is that the tab width was always returning 1 when the indentation unit was 'space' rather than returning the indentation width to visually appear correct.

Thank you, #72 is indeed the solution to this issue. I reviewed and approved your Pull Request.