diff options
author | Pat Thoyts <patthoyts@users.sourceforge.net> | 2010-10-27 23:37:31 +0100 |
---|---|---|
committer | Pat Thoyts <patthoyts@users.sourceforge.net> | 2010-10-27 23:37:31 +0100 |
commit | c744086964975eedfb7a6703789219b9749167d6 (patch) | |
tree | 6b9619744b464dee0ef85d1c13321eab5db98576 /git-gui.sh | |
parent | 38ec8d3e265220fb091b8c5ad6233b502242f866 (diff) | |
download | git-c744086964975eedfb7a6703789219b9749167d6.tar.gz git-c744086964975eedfb7a6703789219b9749167d6.tar.xz |
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 <patthoyts@users.sourceforge.net>
Diffstat (limited to 'git-gui.sh')
-rwxr-xr-x | git-gui.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/git-gui.sh b/git-gui.sh index 5e8378fc3..efbc446d6 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -3312,6 +3312,7 @@ text $ui_diff -background white -foreground black \ -xscrollcommand {.vpane.lower.diff.body.sbx set} \ -yscrollcommand {.vpane.lower.diff.body.sby set} \ -state disabled +catch {$ui_diff configure -tabstyle wordprocessor} ${NS}::scrollbar .vpane.lower.diff.body.sbx -orient horizontal \ -command [list $ui_diff xview] ${NS}::scrollbar .vpane.lower.diff.body.sby -orient vertical \ |