aboutsummaryrefslogtreecommitdiffstats
path: root/git-gui/lib/commit.tcl
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2008-03-03 10:11:08 +1100
committerPaul Mackerras <paulus@samba.org>2008-03-03 10:11:08 +1100
commitac1276ab6eaae8e10e409263370dca21b8772359 (patch)
tree957cf207331285566b33ef59881b506e305bdcb3 /git-gui/lib/commit.tcl
parentgitk: Handle updating with path limiting better (diff)
downloadgit-ac1276ab6eaae8e10e409263370dca21b8772359.tar.gz
git-ac1276ab6eaae8e10e409263370dca21b8772359.zip
gitk: Fix problems with target row stuff
Occasionally the target row stuff would scroll the display to some uninteresting commit while reading. There were two problems: one was that drawvisible would set targetrow even if there was no target previously and no row selected, and the other was that it was possible for the target row to get pushed down past numcommits, if drawvisible was called after rows were added but before layoutmore got run. The first problem is fixed by just not setting targetrow/id unless there is a selected row or they were set previously. The second problem is fixed by updating numcommits immediately new rows are added. This leads to a simplification of layoutmore and chewcommits but also means that some of the things that were done in layoutmore now need to be done elsewhere, since layoutmore can no longer use numcommits to know how much it has seen previously. Hence the changes to getcommits, initlayout and setcanvscroll. Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'git-gui/lib/commit.tcl')
0 files changed, 0 insertions, 0 deletions