Commit ffcd945e authored by Dmitry Antipov's avatar Dmitry Antipov

* window.c (Fscroll_other_window): Use SET_PT_BOTH because both

character and byte positions can be obtained from marker.
parent 8a7debc1
......@@ -2,6 +2,8 @@
* xdisp.c (init_iterator): Simplify because both character and byte
positions are either specified or -1. Add eassert. Adjust comment.
* window.c (Fscroll_other_window): Use SET_PT_BOTH because both
character and byte positions can be obtained from marker.
2013-03-13 Paul Eggert <eggert@cs.ucla.edu>
......
......@@ -5021,7 +5021,7 @@ specifies the window to scroll. This takes precedence over
++windows_or_buffers_changed;
Fset_buffer (w->buffer);
SET_PT (marker_position (w->pointm));
SET_PT_BOTH (marker_position (w->pointm), marker_byte_position (w->pointm));
if (NILP (arg))
window_scroll (window, 1, 1, 1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment