diff options
| author | halilsen <halil.sen@mapotempo.com> | 2022-02-20 19:47:35 +0000 |
|---|---|---|
| committer | Paul Mackerras <paulus@ozlabs.org> | 2022-05-11 18:04:12 +1000 |
| commit | 1f6b196665704023fb14644e93b869ce54ee2452 (patch) | |
| tree | 99d203ad55e4e182040a9ba0465c8ac06b9d017a | |
| parent | gitk: Resize panes correctly when reducing window size (diff) | |
| download | git-1f6b196665704023fb14644e93b869ce54ee2452.tar.gz git-1f6b196665704023fb14644e93b869ce54ee2452.zip | |
gitk: trivial indentation fix
No functional changes.
Signed-off-by: Halil Sen <halil.sen@gmail.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Diffstat (limited to '')
| -rwxr-xr-x | gitk | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -2955,9 +2955,9 @@ proc savestuff {w} { proc resizeclistpanes {win w} { global oldwidth oldsash use_ttk if {[info exists oldwidth($win)]} { - if {[info exists oldsash($win)]} { - set s0 [lindex $oldsash($win) 0] - set s1 [lindex $oldsash($win) 1] + if {[info exists oldsash($win)]} { + set s0 [lindex $oldsash($win) 0] + set s1 [lindex $oldsash($win) 1] } elseif {$use_ttk} { set s0 [$win sashpos 0] set s1 [$win sashpos 1] @@ -2992,7 +2992,7 @@ proc resizeclistpanes {win w} { $win sash place 0 $sash0 [lindex $s0 1] $win sash place 1 $sash1 [lindex $s1 1] } - set oldsash($win) [list $sash0 $sash1] + set oldsash($win) [list $sash0 $sash1] } set oldwidth($win) $w } @@ -3000,8 +3000,8 @@ proc resizeclistpanes {win w} { proc resizecdetpanes {win w} { global oldwidth oldsash use_ttk if {[info exists oldwidth($win)]} { - if {[info exists oldsash($win)]} { - set s0 $oldsash($win) + if {[info exists oldsash($win)]} { + set s0 $oldsash($win) } elseif {$use_ttk} { set s0 [$win sashpos 0] } else { @@ -3024,7 +3024,7 @@ proc resizecdetpanes {win w} { } else { $win sash place 0 $sash0 [lindex $s0 1] } - set oldsash($win) $sash0 + set oldsash($win) $sash0 } set oldwidth($win) $w } |
