From aa7b6f0a9145ff32c827a29e59e256b670494202 Mon Sep 17 00:00:00 2001 From: Zhang Chiyuan Date: Mon, 3 Mar 2008 15:54:58 +0000 Subject: [PATCH] bug about linking of each field group fixed: caused by copy & paste error. --- yasnippet.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yasnippet.el b/yasnippet.el index cb1baa6..1d055ca 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -118,7 +118,7 @@ current column if this variable is non-`nil'.") (nth 2 group)) (defun yas/snippet-field-group-set-prev (group prev) "Set previous field group of GROUP." - (setf (nth 2 group) prev)) + (setf (nth 3 group) prev)) (defun yas/snippet-field-group-prev (group) "Get previous field group." (nth 3 group)) @@ -356,7 +356,7 @@ otherwise, nil returned." (interactive) (let ((overlay (yas/current-snippet-overlay))) (if overlay - (let ((prev (yas/snippet-field-group-next + (let ((prev (yas/snippet-field-group-prev (overlay-get overlay 'yas/snippet-field-group)))) (if prev (goto-char (overlay-start