diff options
author | Richard Quirk <richard.quirk@gmail.com> | 2008-06-20 16:58:15 +0200 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2008-06-20 23:19:52 -0400 |
commit | cead78edef6a2f1339f699cd7d656b6834707b94 (patch) | |
tree | db27c7cea89af43aef2884cb797ea9bae35208e8 /t/t5515/fetch.br-unconfig_branches-one | |
parent | git-gui: Move on to the next filename after staging/unstaging a change (diff) | |
download | tgif-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 't/t5515/fetch.br-unconfig_branches-one')
0 files changed, 0 insertions, 0 deletions