aboutsummaryrefslogtreecommitdiff
path: root/git-gui
diff options
context:
space:
mode:
authorAbhijit Menon-Sen <ams@toroid.org>2008-06-25 16:06:50 +0530
committerShawn O. Pearce <spearce@spearce.org>2008-06-25 16:55:10 -0400
commitf531e463f0471ce41c51e19074a118482f36910f (patch)
tree76fa7cc863535fc6500778ff4134a5799d74140f /git-gui
parentcead78edef6a2f1339f699cd7d656b6834707b94 (diff)
downloadgit-f531e463f0471ce41c51e19074a118482f36910f.tar.gz
git-f531e463f0471ce41c51e19074a118482f36910f.tar.xz
git-gui: Don't select the wrong file if the last listed file is staged.
Johannes Sixt noticed that if the last file in the list was staged, my earlier patch would display the diff for the penultimate file, but show the file _before_ that as being selected. This was due to my misunderstanding the lno argument to show_diff. This patch fixes the problem: lno is not decremented in the special case to handle the last item in the list (though we still need to use $lno-1 to find the right path for the next diff). Signed-off-by: Abhijit Menon-Sen <ams@toroid.org> Tested-by: Johannes Sixt <johannes.sixt@telecom.at> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'git-gui')
0 files changed, 0 insertions, 0 deletions