author | Paul Mackerras <paulus@samba.org> | |
Fri, 7 Mar 2008 11:51:55 +0000 (22:51 +1100) | ||
committer | Paul Mackerras <paulus@samba.org> | |
Fri, 7 Mar 2008 11:51:55 +0000 (22:51 +1100) | ||
commit | c30acc77fec6b7d793af703c4700f5162db82eb7 | |
tree | 696efe5401014c1ab8967caa70f24e542eaeef41 | tree | snapshot |
parent | d76afb15ada0e9e29cae2d83cd35d9489a042b0c | commit | diff |
gitk: Fix problem with target row not being in scroll region
Since we limit the rate at which we do updates to the canvas scrolling
regions, it's possible to get into selectline for a row that is
outside the currently-set scrolling region. When this happens,
selectline can't scroll to show the selected line, and as a
consequence, drawvisible chooses some other bogus row to be the
target row.
This fixes it by calling setcanvscroll from selectline in this case.
We also set selectedline (and currentid) before calling drawvisible
so that drawvisible makes the right choice of target row.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Since we limit the rate at which we do updates to the canvas scrolling
regions, it's possible to get into selectline for a row that is
outside the currently-set scrolling region. When this happens,
selectline can't scroll to show the selected line, and as a
consequence, drawvisible chooses some other bogus row to be the
target row.
This fixes it by calling setcanvscroll from selectline in this case.
We also set selectedline (and currentid) before calling drawvisible
so that drawvisible makes the right choice of target row.
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk | diff | blob | history |