summaryrefslogtreecommitdiff
path: root/gitk
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2006-05-19 23:58:49 (GMT)
committerPaul Mackerras <paulus@samba.org>2006-05-19 23:58:49 (GMT)
commite72ee5ebc8de90ad6de8f9318f75ebd45b2ca001 (patch)
tree3c2c3d86e83f90e650f2405007a0b2baf417d4ab /gitk
parentb09344891010330dcdd26b90453e7e31c780612e (diff)
downloadgit-e72ee5ebc8de90ad6de8f9318f75ebd45b2ca001.zip
git-e72ee5ebc8de90ad6de8f9318f75ebd45b2ca001.tar.gz
git-e72ee5ebc8de90ad6de8f9318f75ebd45b2ca001.tar.bz2
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>
Diffstat (limited to 'gitk')
-rwxr-xr-xgitk1
1 files changed, 1 insertions, 0 deletions
diff --git a/gitk b/gitk
index d59debf..286f5cd 100755
--- a/gitk
+++ b/gitk
@@ -3429,6 +3429,7 @@ proc selnextpage {dir} {
set lpp 1
}
allcanvs yview scroll [expr {$dir * $lpp}] units
+ drawvisible
if {![info exists selectedline]} return
set l [expr {$selectedline + $dir * $lpp}]
if {$l < 0} {