]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'master' of git://git.ozlabs.org/~paulus/gitk
authorJunio C Hamano <gitster@pobox.com>
Wed, 11 May 2022 15:25:02 +0000 (08:25 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 11 May 2022 15:25:02 +0000 (08:25 -0700)
* 'master' of git://git.ozlabs.org/~paulus/gitk:
  gitk: include y coord in recorded sash position
  gitk: trivial indentation fix

1  2 
gitk-git/gitk

diff --combined gitk-git/gitk
index 23d9dd1fe0d024c4af344c35faf01365ec8a6c58,0ae7d685904b85f97a69b243e30f010671d050e3..0ae7d685904b85f97a69b243e30f010671d050e3
--- 2/gitk
@@@ -2955,9 -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]
          } else {
              $win sash place 0 $sash0 [lindex $s0 1]
              $win sash place 1 $sash1 [lindex $s1 1]
+             set sash0 [list $sash0 [lindex $s0 1]]
+             set sash1 [list $sash1 [lindex $s1 1]]
          }
-       set oldsash($win) [list $sash0 $sash1]
+         set oldsash($win) [list $sash0 $sash1]
      }
      set oldwidth($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 {
              $win sashpos 0 $sash0
          } else {
              $win sash place 0 $sash0 [lindex $s0 1]
+             set sash0 [list $sash0 [lindex $s0 1]]
          }
-       set oldsash($win) $sash0
+         set oldsash($win) $sash0
      }
      set oldwidth($win) $w
  }