# HG changeset patch # User Karl Heuer # Date 800920398 0 # Node ID 343ec791e9bea9db1bfd4914283e6b11cf5799ea # Parent 42dba4f290a078e7833fc62def529659733ebc51 (buffer_posn_from_coords): Don't let startp be before BEGV. diff -r 42dba4f290a0 -r 343ec791e9be src/dispnew.c --- 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