aboutsummaryrefslogtreecommitdiff
path: root/git-gui
diff options
context:
space:
mode:
authorRichard Quirk <richard.quirk@gmail.com>2008-06-20 16:58:15 +0200
committerShawn O. Pearce <spearce@spearce.org>2008-06-20 23:19:52 -0400
commitcead78edef6a2f1339f699cd7d656b6834707b94 (patch)
treedb27c7cea89af43aef2884cb797ea9bae35208e8 /git-gui
parent8a965b8ee28bedc58641453e13d03f80180320dd (diff)
downloadgit-cead78edef6a2f1339f699cd7d656b6834707b94.tar.gz
git-cead78edef6a2f1339f699cd7d656b6834707b94.tar.xz
git-gui: Fix accidental staged state toggle when clicking top pixel row
If a text widget is asked the index at x,y with y == 0 or y == 1 it will always return 1.0 as the nearest index, regardless of the x position. This means that clicking the top 2 pixels of the Unstaged/Staged Changes lists caused the state of the file there to be toggled. This patch checks that the pixel clicked is greater than 1, so there is less chance of accidentally staging or unstaging changes. Signed-off-by: Richard Quirk <richard.quirk@gmail.com> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'git-gui')
0 files changed, 0 insertions, 0 deletions