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
201c831a
Commit
201c831a
authored
Dec 12, 2001
by
Gerd Moellmann
Browse files
(Frecenter): Simplify computation in the case of window
system frames and ARG < 0; use window_box_height.
parent
f7ccfc8c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
src/ChangeLog
src/ChangeLog
+8
-0
src/window.c
src/window.c
+4
-5
No files found.
src/ChangeLog
View file @
201c831a
2001-12-12 Gerd Moellmann <gerd@gnu.org>
* xdisp.c (move_it_vertically_backward): Change heuristic
for the case that we didn't move far enough initially.
* window.c (Frecenter): Simplify computation in the case of window
system frames and ARG < 0; use window_box_height.
2001-12-11 Richard M. Stallman <rms@gnu.org>
* Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
...
...
src/window.c
View file @
201c831a
...
...
@@ -4584,18 +4584,17 @@ and redisplay normally--don't erase and redraw the frame. */)
nlines
=
-
XINT
(
arg
)
-
1
;
move_it_by_lines
(
&
it
,
nlines
,
1
);
y1
=
it
.
current_y
-
y0
;
h
=
line_bottom_y
(
&
it
)
-
y1
;
y1
=
line_bottom_y
(
&
it
);
/* If we can't move down NLINES lines because we hit
the end of the buffer, count in some empty lines. */
if
(
it
.
vpos
<
nlines
)
y1
+=
(
nlines
-
it
.
vpos
)
*
CANON_Y_UNIT
(
it
.
f
);
y0
=
it
.
last_visible_y
-
y1
-
h
;
h
=
window_box_height
(
w
)
-
(
y1
-
y0
)
;
start_display
(
&
it
,
w
,
pt
);
move_it_vertically
(
&
it
,
-
y0
);
move_it_vertically
(
&
it
,
-
h
);
charpos
=
IT_CHARPOS
(
it
);
bytepos
=
IT_BYTEPOS
(
it
);
}
...
...
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