Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
76832439
Commit
76832439
authored
Oct 12, 2000
by
Eli Zaretskii
Browse files
(coordinates_in_window): Fix detection of vertical line
on character terminals.
parent
a622451f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
src/ChangeLog
src/ChangeLog
+5
-0
src/window.c
src/window.c
+5
-2
No files found.
src/ChangeLog
View file @
76832439
2000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
* window.c (coordinates_in_window): Fix detection of vertical line
on character terminals.
2000-10-12 Gerd Moellmann <gerd@gnu.org>
* editfns.c (save_excursion_save): Additionally record the
...
...
src/window.c
View file @
76832439
...
...
@@ -514,7 +514,9 @@ coordinates_in_window (w, x, y)
&&
*
y
<
top_y
+
CURRENT_HEADER_LINE_HEIGHT
(
w
))
/* On the top line. */
return
4
;
else
if
(
*
x
<
left_x
||
*
x
>=
right_x
)
/* Need to say "*x > right_x" rather than >=, since on character
terminals, the vertical line's x coordinate is right_x. */
else
if
(
*
x
<
left_x
||
*
x
>
right_x
)
{
/* Other lines than the mode line don't include flags areas and
scroll bars on the left. */
...
...
@@ -524,9 +526,10 @@ coordinates_in_window (w, x, y)
*
y
-=
top_y
;
return
*
x
<
left_x
?
5
:
6
;
}
/* Here, too, "*x > right_x" is because of character terminals. */
else
if
(
!
w
->
pseudo_window_p
&&
!
WINDOW_RIGHTMOST_P
(
w
)
&&
*
x
>
=
right_x
-
CANON_X_UNIT
(
f
))
&&
*
x
>
right_x
-
CANON_X_UNIT
(
f
))
/* On the border on the right side of the window? Assume that
this area begins at RIGHT_X minus a canonical char width. */
return
3
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment