diff options
author | Paul Mackerras <paulus@samba.org> | 2008-03-11 22:11:19 +1100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-03-11 22:11:19 +1100 |
commit | 494d3b8a6c93d88daf4a52dbcc6ab07903f8ed4e (patch) | |
tree | 9f1aa0e61f13c52d3dfe62a4f9c7db80e8676475 /git-submodule.sh | |
parent | [PATCH] gitk: Don't show local changes when we there is no work tree (diff) | |
download | tgif-494d3b8a6c93d88daf4a52dbcc6ab07903f8ed4e.tar.xz |
gitk: Avoid Tcl error when switching views
Michele Ballabio <barra_cuda@katamail.com> pointed out that gitk
sometimes throws a Tcl error (can't read "yscreen") when switching
views, and proposed a patch. This is a different way of fixing it
which is a bit neater. Basically, in showview we only set yscreen if
the selected commit is on screen to start with, and then we only
scroll the canvas to bring it onscreen if yscreen is set and the
same commit exists in the new view.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'git-submodule.sh')
0 files changed, 0 insertions, 0 deletions