From 791d866957eb5e85a09b5709f2cfa4e3a280a60d Mon Sep 17 00:00:00 2001 From: capitaomorte Date: Tue, 17 Nov 2009 16:31:10 +0000 Subject: [PATCH] * very subtle mirror-in-field bug fixed (sort stability issue in yas/calculate-adjacencies) --- yasnippet.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/yasnippet.el b/yasnippet.el index df2b22e..4b6ad5b 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -3194,7 +3194,9 @@ has to be called before the $-constructs are deleted." (t (setf (yas/exit-next fom) nextfom)))) (yas/compare-fom-begs (fom1 fom2) - (>= (yas/fom-start fom2) (yas/fom-start fom1))) + (if (= (yas/fom-start fom2) (yas/fom-start fom1)) + (yas/mirror-p fom2) + (>= (yas/fom-start fom2) (yas/fom-start fom1)))) (yas/link-foms (fom1 fom2) (yas/fom-set-next-fom fom1 fom2))) ;; make some yas/field, yas/mirror and yas/exit soup