Fossil SCM

Fix diff -tk's handling of the file list when the Reload button is tapped and the list of files is changed. Problem reported in /chat.

stephan 2025-08-01 13:03 trunk
Commit 4bb41f924263e2eac557504c85fc560567b240cc62cb035c70d370875dcbf4d0
1 file changed +1 -1
+1 -1
--- src/diff.tcl
+++ src/diff.tcl
@@ -281,12 +281,12 @@
281281
if {$type ne "txt"} {
282282
$c config -width $widths($type)
283283
}
284284
$c config -state disabled
285285
}
286
+ .wfiles.lb config -height $nDiffs
286287
if {$nDiffs <= [.wfiles.lb cget -height]} {
287
- .wfiles.lb config -height $nDiffs
288288
grid remove .wfiles.sb
289289
}
290290
291291
return $nDiffs
292292
}
293293
--- src/diff.tcl
+++ src/diff.tcl
@@ -281,12 +281,12 @@
281 if {$type ne "txt"} {
282 $c config -width $widths($type)
283 }
284 $c config -state disabled
285 }
 
286 if {$nDiffs <= [.wfiles.lb cget -height]} {
287 .wfiles.lb config -height $nDiffs
288 grid remove .wfiles.sb
289 }
290
291 return $nDiffs
292 }
293
--- src/diff.tcl
+++ src/diff.tcl
@@ -281,12 +281,12 @@
281 if {$type ne "txt"} {
282 $c config -width $widths($type)
283 }
284 $c config -state disabled
285 }
286 .wfiles.lb config -height $nDiffs
287 if {$nDiffs <= [.wfiles.lb cget -height]} {
 
288 grid remove .wfiles.sb
289 }
290
291 return $nDiffs
292 }
293

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button