From 76028bf06c1bd0477494c5fedf744426b37630e7 Mon Sep 17 00:00:00 2001 From: Zhang Chiyuan Date: Thu, 11 Dec 2008 05:50:00 +0000 Subject: [PATCH] Fixed the bug of the default code assigned to yas/buffer-local-condition (Issue 45) --- yasnippet.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yasnippet.el b/yasnippet.el index 432ba9e..43668b2 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -134,10 +134,10 @@ proper values: (defvar yas/buffer-local-condition '(if (and (not (bobp)) - (or (equal "font-lock-comment-face" + (or (equal 'font-lock-comment-face (get-char-property (1- (point)) 'face)) - (equal "font-lock-string-face" + (equal 'font-lock-string-face (get-char-property (1- (point)) 'face)))) '(require-snippet-condition . force-in-comment)