diff options
| author | Eli Zaretskii | 2020-09-24 17:13:43 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2020-09-24 17:13:43 +0300 |
| commit | 897ea41d394cffe75ece0450d1628d6c4855d37a (patch) | |
| tree | 47d84964c6885bc227b1b077c018ef4211256cdc | |
| parent | 7e7a010d85f2eb037c4c8109f5bc0fdf7a4dcaac (diff) | |
| download | emacs-897ea41d394cffe75ece0450d1628d6c4855d37a.tar.gz emacs-897ea41d394cffe75ece0450d1628d6c4855d37a.zip | |
Fix last change in resize_mini_window
* src/xdisp.c (resize_mini_window): Prevent recentering the
mini-window once its start position is computed. (Bug#43572)
| -rw-r--r-- | src/xdisp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 8fadff972f0..3d40878be65 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -11820,6 +11820,9 @@ resize_mini_window (struct window *w, bool exact_p) | |||
| 11820 | such as user prompt, will be hidden from view. */ | 11820 | such as user prompt, will be hidden from view. */ |
| 11821 | move_it_by_lines (&it, 0); | 11821 | move_it_by_lines (&it, 0); |
| 11822 | start = it.current.pos; | 11822 | start = it.current.pos; |
| 11823 | /* Prevent redisplay_window from recentering, and thus from | ||
| 11824 | overriding the window-start point we computed here. */ | ||
| 11825 | w->start_at_line_beg = false; | ||
| 11823 | } | 11826 | } |
| 11824 | else | 11827 | else |
| 11825 | SET_TEXT_POS (start, BEGV, BEGV_BYTE); | 11828 | SET_TEXT_POS (start, BEGV, BEGV_BYTE); |