aboutsummaryrefslogtreecommitdiffstats
path: root/git-gui/lib/commit.tcl
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2008-03-07 22:51:55 +1100
committerPaul Mackerras <paulus@samba.org>2008-03-07 22:51:55 +1100
commitc30acc77fec6b7d793af703c4700f5162db82eb7 (patch)
tree696efe5401014c1ab8967caa70f24e542eaeef41 /git-gui/lib/commit.tcl
parentgitk: Avoid a crash in selectline if commitinfo($id) isn't set (diff)
downloadgit-c30acc77fec6b7d793af703c4700f5162db82eb7.tar.gz
git-c30acc77fec6b7d793af703c4700f5162db82eb7.zip
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>
Diffstat (limited to 'git-gui/lib/commit.tcl')
0 files changed, 0 insertions, 0 deletions