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.
Commit
4bb41f924263e2eac557504c85fc560567b240cc62cb035c70d370875dcbf4d0
Parent
2a39681ad16f6f5…
1 file changed
+1
-1
+1
-1
| --- src/diff.tcl | ||
| +++ src/diff.tcl | ||
| @@ -281,12 +281,12 @@ | ||
| 281 | 281 | if {$type ne "txt"} { |
| 282 | 282 | $c config -width $widths($type) |
| 283 | 283 | } |
| 284 | 284 | $c config -state disabled |
| 285 | 285 | } |
| 286 | + .wfiles.lb config -height $nDiffs | |
| 286 | 287 | if {$nDiffs <= [.wfiles.lb cget -height]} { |
| 287 | - .wfiles.lb config -height $nDiffs | |
| 288 | 288 | grid remove .wfiles.sb |
| 289 | 289 | } |
| 290 | 290 | |
| 291 | 291 | return $nDiffs |
| 292 | 292 | } |
| 293 | 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 | 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 |