summaryrefslogtreecommitdiff
path: root/lib/win32_shortcut.js
diff options
context:
space:
mode:
authorLibravatar Richard Quirk <richard.quirk@gmail.com>2008-06-20 16:58:15 +0200
committerLibravatar Shawn O. Pearce <spearce@spearce.org>2008-06-20 23:19:52 -0400
commitcead78edef6a2f1339f699cd7d656b6834707b94 (patch)
treedb27c7cea89af43aef2884cb797ea9bae35208e8 /lib/win32_shortcut.js
parentgit-gui: Move on to the next filename after staging/unstaging a change (diff)
downloadtgif-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 'lib/win32_shortcut.js')
0 files changed, 0 insertions, 0 deletions