gitk: Fix size saving for diff and file list panes
PATCH 1/1 gitk: Fix size saving for diff and file list panes
Signed-off-by Sergey Vlasov <[email protected]>
The splitter between diff and file list panes was moving to the left after every restart of gitk.
---
This patch applies both to the stable and new gitk versions.
gitk | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
1e43530dc79f176507e5ad2fd57f4c9ba6cea46a
gitk +2 -2
@@ -676,10 +676,10 @@ proc savestuff {w} { puts $f "set geometry(canv2) [expr {[winfo width $canv2]-2}]" puts $f "set geometry(canv3) [expr {[winfo width $canv3]-2}]" puts $f "set geometry(canvh) [expr {[winfo height $canv]-2}]" - set wid [expr {([winfo width $ctext] - 8) \ + set wid [expr {([winfo width $ctext]) \ / [font measure $textfont "0"]}] puts $f "set geometry(ctextw) $wid" - set wid [expr {([winfo width $cflist] - 11) \ + set wid [expr {([winfo width $cflist]) \ / [font measure [$cflist cget -font] "0"]}] puts $f "set geometry(cflistw) $wid" close $f
Signature · 1 line
1.2.GIT