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
dad67609
Commit
dad67609
authored
May 28, 2002
by
Richard M. Stallman
Browse files
(window_scroll_pixel_based): Don't call Fbolp;
instead, see if the new start pos is at beginning of line.
parent
bf3428a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
src/window.c
src/window.c
+6
-2
No files found.
src/window.c
View file @
dad67609
...
...
@@ -4162,10 +4162,14 @@ window_scroll_pixel_based (window, n, whole, noerror)
if (! vscrolled)
{
int pos = IT_CHARPOS (it);
int bytepos;
/* Set the window start, and set up the window for redisplay. */
set_marker_restricted (w->start, make_number (
IT_CHARPOS (it)
),
set_marker_restricted (w->start, make_number (
pos
),
w->buffer);
w->start_at_line_beg = Fbolp ();
bytepos = XMARKER (w->start)->bytepos;
w->start_at_line_beg = ((pos == BEGV || FETCH_BYTE (bytepos - 1) == '\n')
? Qt : Qnil);
w->update_mode_line = Qt;
XSETFASTINT (w->last_modified, 0);
XSETFASTINT (w->last_overlay_modified, 0);
...
...
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