Mercurial > hg > xemacs-beta
diff src/font-lock.c @ 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 | bf645ed7cfe3 |
children | 047d37eb70d7 |
line wrap: on
line diff
--- 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);