Skip to content

Commit c744086

Browse files
committed
git-gui: use wordprocessor tab style to ensure tabs work as expected
The Tk text widget tab style is tabular where the first tab will align to the first tabstop and if that position is left of the current location then just a single character space is used. With the wordprocessor style a tab moves the next character position to the next rightmost tabstop as expected for viewing code. Signed-off-by: Pat Thoyts <[email protected]>
1 parent 38ec8d3 commit c744086

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

git-gui.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3312,6 +3312,7 @@ text $ui_diff -background white -foreground black \
33123312
-xscrollcommand {.vpane.lower.diff.body.sbx set} \
33133313
-yscrollcommand {.vpane.lower.diff.body.sby set} \
33143314
-state disabled
3315+
catch {$ui_diff configure -tabstyle wordprocessor}
33153316
${NS}::scrollbar .vpane.lower.diff.body.sbx -orient horizontal \
33163317
-command [list $ui_diff xview]
33173318
${NS}::scrollbar .vpane.lower.diff.body.sby -orient vertical \

0 commit comments

Comments
 (0)