Skip to content

fix: expand tabs to 8-column stops in diff and file views#2928

Open
leno23 wants to merge 1 commit into
gitui-org:masterfrom
leno23:fix/hard-tabs-display-2803
Open

fix: expand tabs to 8-column stops in diff and file views#2928
leno23 wants to merge 1 commit into
gitui-org:masterfrom
leno23:fix/hard-tabs-display-2803

Conversation

@leno23
Copy link
Copy Markdown

@leno23 leno23 commented May 17, 2026

Summary

  • Expand hard tabs using 8-column tab stops (was a fixed two spaces per tab).
  • Applies everywhere tabs_to_spaces is used: diff view, syntax highlighting, and blame.

Test plan

  • cargo test tabs_to_spaces
  • Manual: open a file with leading hard tabs in the diff view and confirm 8-column alignment

Fixes #2803

Made with Cursor

Replace the hard-coded two-space tab rendering with standard
8-column tab stops so hard tabs align like most editors and terminals.

Fixes gitui-org#2803

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hard tabs are not shown correctly

1 participant