Re: [PATCH] diff.tcl: fixed alignment of tabs in git-gui diff by using spaces
- From
GitHub Chris Idema <github_chris_idema@proton.me>
- Date
- Jan 26, 2026, 13:32 UTC
- Message-ID
- <Lj9kojJwK1ZAtvE5nj6rTq5EXf1-QhsRlmBDM9YntbYeWb3J07mlbM-njNco2XT1pSPXsNVbo9Uc5kJOHihb11odjthYN4YtuhVdNwxSIqk=@proton.me>
- In-Reply-To
- <01d0faaf-99fb-42a4-befd-bb7f359809bc@kdbg.org>
> Sorry, I cannot reproduce what I read into this sentence. When I change
the "Tab spacing" option in the Options dialog, the display changes to the specified tab width. I'm using Tcl/Tk 8.6.
I use git for Windows version "2.52.0.windows.1" on Windows 11.
Here is how you can reproduce the problem: mkdir test_tabs cd test_tabs git init echo "" > test.c git add . git commit -m "initial commit" echo -e "int test1\t= 5;\nint test11\t= 6;\nint test111\t= 6;\n" > test.c git gui
> Do "Stage Line/Hunk for Commit" still work after this conversion?
I'm sorry but I don't know what this means.
-- Chris
-------- Original Message -------- On Monday, 01/26/26 at 13:15 Johannes Sixt <j6t@kdbg.org> wrote: Am 26.01.26 um 11:45 schrieb Chris Idema via GitGitGadget:
> From: Chris Idema <github_chris_idema@proton.me> > > Tabs were not properly rendered in TK regardless of tab width settings.
Sorry, I cannot reproduce what I read into this sentence. When I change the "Tab spacing" option in the Options dialog, the display changes to the specified tab width. I'm using Tcl/Tk 8.6.
> Converting tab alignment to spaces before rendering in TK fixes this.
Do "Stage Line/Hunk for Commit" still work after this conversion?
-- Hannes