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
afdb2485
Commit
afdb2485
authored
Feb 11, 1994
by
Karl Heuer
Browse files
(Fpos_visible_in_window_p): Take hscroll into account.
parent
ef0fdbb1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/window.c
src/window.c
+5
-2
No files found.
src/window.c
View file @
afdb2485
...
...
@@ -185,6 +185,7 @@ POS defaults to point; WINDOW, to the selected window.")
register
int
posint
;
register
struct
buffer
*
buf
;
struct
position
posval
;
int
hscroll
;
if
(
NILP
(
pos
))
posint
=
point
;
...
...
@@ -196,6 +197,7 @@ POS defaults to point; WINDOW, to the selected window.")
w
=
decode_window
(
window
);
top
=
marker_position
(
w
->
start
);
hscroll
=
XINT
(
w
->
hscroll
);
if
(
posint
<
top
)
return
Qnil
;
...
...
@@ -218,9 +220,10 @@ POS defaults to point; WINDOW, to the selected window.")
return
Qnil
;
/* If that info is not correct, calculate afresh */
posval
=
*
compute_motion
(
top
,
0
,
0
,
posint
,
height
,
0
,
posval
=
*
compute_motion
(
top
,
0
,
(
hscroll
?
1
-
hscroll
:
0
),
posint
,
height
,
0
,
window_internal_width
(
w
)
-
1
,
XINT
(
w
->
hscroll
)
,
0
);
hscroll
,
0
);
return
posval
.
vpos
<
height
?
Qt
:
Qnil
;
}
...
...
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