Closed matta closed 3 months ago
This seems to be an effect of the TUI lib Ratatui we're using. The fix is easy I suppose, replace tabs with spaces before rendering.
Question just remains: How many spaces? Might be good enough to hard-code it to 4 for now. :thinking:
Using gitu 0.21.0, the diff display seems to collapse tabs to zero width characters. This makes gitu annoying to use with go code, which uses leading tabs for indentation. The screenshots are taken from Alacritty on Debian stable.
(gitu is awesome by the way! A great alternative to firing up Emacs just to get to magit)
Example:
Same repository state using
git diff
in the terminal: