gitk: Fix bug where page-up/down wouldn't always work properly
If the user pressed page up or page down and the new page wasn't already drawn, we failed to select the line we wanted in the new page. This fixes it. Signed-off-by: Paul Mackerras <paulus@samba.org>
Paul Mackerras committed
May 20, 2006 at 09:58 UTC
e72ee5ebc8de90ad6de8f9318f75ebd45b2ca001
1 file changed
+1
gitk
+1
@@ -3429,6 +3429,7 @@ proc selnextpage {dir} {
3429
set lpp 1
3430
}
3431
allcanvs yview scroll [expr {$dir * $lpp}] units
3432
+ drawvisible
3433
if {![info exists selectedline]} return
3434
set l [expr {$selectedline + $dir * $lpp}]
3435
if {$l < 0} {