From e13e18914841af1f7af132d5b7b6969e35f31dae Mon Sep 17 00:00:00 2001 From: Zhang Chiyuan Date: Mon, 10 Mar 2008 13:55:54 +0000 Subject: [PATCH] bug fix: comparing number to nil cause error --- yasnippet.el | 1 + 1 file changed, 1 insertion(+) diff --git a/yasnippet.el b/yasnippet.el index 04aeb35..7a92464 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -176,6 +176,7 @@ mode will be listed under the menu \"yasnippet\".") :test '(lambda (field group) (and (not (null (yas/field-number field))) + (not (null (yas/group-number group)) (= (yas/field-number field) (yas/group-number group))))))) (if group