Mercurial > emacs
changeset 11858:343ec791e9be
(buffer_posn_from_coords): Don't let startp be before BEGV.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Fri, 19 May 1995 21:53:18 +0000 |
parents | 42dba4f290a0 |
children | 8d57babf4b36 |
files | src/dispnew.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dispnew.c Fri May 19 18:57:48 1995 +0000 +++ b/src/dispnew.c Fri May 19 21:53:18 1995 +0000 @@ -1504,6 +1504,11 @@ current_buffer = XBUFFER (window->buffer); + /* We can't get a correct result in this case, + but at least prevent compute_motion from crashing. */ + if (startp < BEGV) + startp = BEGV; + /* It would be nice if we could use FRAME_CURRENT_GLYPHS (XFRAME (window->frame))->bufp to avoid scanning from the very top of the window, but it isn't maintained correctly, and I'm not even