Mercurial > hg > xemacs-beta
changeset 842:dc12269565c9
[xemacs-hg @ 2002-05-14 18:14:27 by ben]
fix crash -- tab at buffer beg
font-lock.c: Don't use off the beginning position to initiate syntax cache.
author | ben |
---|---|
date | Tue, 14 May 2002 18:14:30 +0000 |
parents | 44478bd99873 |
children | f46864126a0d |
files | src/ChangeLog src/font-lock.c |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Tue May 14 15:16:08 2002 +0000 +++ b/src/ChangeLog Tue May 14 18:14:30 2002 +0000 @@ -1,3 +1,8 @@ +2002-05-14 Ben Wing <ben@xemacs.org> + + * font-lock.c (find_context): + Don't use off the beginning position to initiate syntax cache. + 2002-05-14 Ben Wing <ben@xemacs.org> * text.c (copy_buffer_text_out): Fix bug leading to crashes
--- a/src/font-lock.c Tue May 14 15:16:08 2002 +0000 +++ b/src/font-lock.c Tue May 14 18:14:30 2002 +0000 @@ -436,7 +436,8 @@ setup_context_cache (buf, pt); pt = context_cache.cur_point; - scache = setup_buffer_syntax_cache (buf, pt - 1, 1); + scache = setup_buffer_syntax_cache (buf, pt > BUF_BEGV (buf) ? pt - 1 : pt, + 1); if (pt > BUF_BEGV (buf)) { c = BUF_FETCH_CHAR (buf, pt - 1);