Code

git-gui: Preserve scroll position on reshow_diff.
authorAlexander Gavrilov <angavrilov@gmail.com>
Sun, 27 Jul 2008 06:35:38 +0000 (10:35 +0400)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 27 Jul 2008 15:08:10 +0000 (08:08 -0700)
commit25b8fb1e499d0e198e491d10c7023a5f5589e837
tree85a68793c7d9f77e08aefe83c2ad373c728fba79
parent7e09b1531faa260226e0d4f7c850660b7ccb2f04
git-gui: Preserve scroll position on reshow_diff.

It is especially useful for Stage/Unstage Line, because
they invoke full state scan and diff reload, which originally
would reset the scroll position to the top of the file.

Signed-off-by: Alexander Gavrilov <angavrilov@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
lib/diff.tcl