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
66d41723
Commit
66d41723
authored
Oct 11, 2005
by
Kim F. Storm
Browse files
(coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
Fix x position for ON_TEXT when left margin width > 0.
parent
d76432f5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/window.c
src/window.c
+4
-4
No files found.
src/window.c
View file @
66d41723
...
...
@@ -742,9 +742,9 @@ coordinates_in_window (w, x, y)
? (*x < right_x - WINDOW_RIGHT_FRINGE_WIDTH (w))
: (*x >= right_x - rmargin_width)))
{
*
x
-=
right_x
;
if
(
!
WINDOW_HAS_FRINGES_OUTSIDE_MARGINS
(
w
))
*
x
-
=
WINDOW_RIGHT_FRINGE_WIDTH
(
w
);
*x -= right_x
- rmargin_width
;
if (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS (w))
*x
+
= WINDOW_RIGHT_FRINGE_WIDTH (w);
*y -= top_y;
return ON_RIGHT_MARGIN;
}
...
...
@@ -756,7 +756,7 @@ coordinates_in_window (w, x, y)
}
/* Everything special ruled out - must be on text area */
*
x
-=
left_x
+
WINDOW_LEFT_FRINGE_WIDTH
(
w
)
;
*x -=
text_left
;
*y -= top_y;
return ON_TEXT;
}
...
...
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