Fix region extension when scroll bar is on the right
commit1be3bd0ad86644e091ba655a6b8d592c395701ad
authorEli Zaretskii <eliz@gnu.org>
Thu, 5 Mar 2015 16:56:43 +0000 (5 18:56 +0200)
committerEli Zaretskii <eliz@gnu.org>
Thu, 5 Mar 2015 16:56:43 +0000 (5 18:56 +0200)
tree3775aa0a0c45279fba1157f1b3b8e2fdf09542bd
parent61e06b6cb23a719ad77ab3924beb3a0c21e9c2e9
Fix region extension when scroll bar is on the right

 src/keyboard.c (make_lispy_position): When the click is on the
 right-side vertical scroll bar, pass the rightmost X coordinate to
 buffer_posn_from_coords, so that the returned text position
 reflects the closest point to the click.  Fixes region extension
 when mouse moves outside the Emacs frame that has scroll bars on
 the right.
src/ChangeLog
src/keyboard.c