1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-21 10:24:55 +00:00

(coordinates_in_window): Don't return

ON_VERTICAL_BORDER for the rightmost position of a mode/header
line when the window is not the rightmost one.  (Bug#1372)
This commit is contained in:
Martin Rudalics 2008-11-20 10:13:40 +00:00
parent a54fdddbe5
commit f6ef1e6545
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2008-11-20 Martin Rudalics <rudalics@gmx.at>
* window.c (coordinates_in_window): Don't return
ON_VERTICAL_BORDER for the rightmost position of a mode/header
line when the window is not the rightmost one. (Bug#1372)
2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
* buffer.c (syms_of_buffer): Fix doc-string of cursor-type.

View File

@ -774,7 +774,11 @@ coordinates_in_window (w, x, y)
}
else
{
if (eabs (*x - x1) < grabbable_width)
/* Make sure we're not at the rightmost position of a
mode-/header-line and there's yet another window on
the right. (Bug#1372) */
if ((WINDOW_RIGHTMOST_P (w) || *x < x1)
&& eabs (*x - x1) < grabbable_width)
{
/* Convert X and Y to window relative coordinates.
Vertical border is at the right edge of window. */