aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1998-01-03 07:07:02 +0000
committerRichard M. Stallman1998-01-03 07:07:02 +0000
commit835766b6edb523d051b23ecf8a1ebd50e48f4915 (patch)
treea6f08164701bb3d2e66d8864b741d959c81b06c1 /src
parentaeab5be0a87197d1aabc4f43f577afa79e5161cb (diff)
downloademacs-835766b6edb523d051b23ecf8a1ebd50e48f4915.tar.gz
emacs-835766b6edb523d051b23ecf8a1ebd50e48f4915.zip
(redisplay_window): Set pos.bytepos along with pos.bufpos.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 03157e30c46..147268f6427 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -2260,7 +2260,10 @@ recenter:
2260 /* If we scrolled to an actual line boundary, 2260 /* If we scrolled to an actual line boundary,
2261 that's different; don't ignore line boundaries. */ 2261 that's different; don't ignore line boundaries. */
2262 && FETCH_BYTE (pos.bufpos - 1) != '\n') 2262 && FETCH_BYTE (pos.bufpos - 1) != '\n')
2263 pos.bufpos = PT - minibuffer_scroll_overlap; 2263 {
2264 pos.bufpos = PT - minibuffer_scroll_overlap;
2265 pos.bytepos = CHAR_TO_BYTE (pos.bufpos);
2266 }
2264 2267
2265 /* Set startp here explicitly in case that helps avoid an infinite loop 2268 /* Set startp here explicitly in case that helps avoid an infinite loop
2266 in case the window-scroll-functions functions get errors. */ 2269 in case the window-scroll-functions functions get errors. */
@@ -2270,6 +2273,7 @@ recenter:
2270 run_hook_with_args_2 (Qwindow_scroll_functions, window, 2273 run_hook_with_args_2 (Qwindow_scroll_functions, window,
2271 make_number (pos.bufpos)); 2274 make_number (pos.bufpos));
2272 pos.bufpos = marker_position (w->start); 2275 pos.bufpos = marker_position (w->start);
2276 pos.bytepos = marker_byte_position (w->start);
2273 } 2277 }
2274 try_window (window, pos.bufpos); 2278 try_window (window, pos.bufpos);
2275 2279