From e935650a253ef2655748488a09e5691f8c7e67db Mon Sep 17 00:00:00 2001 From: Chris Mann Date: Mon, 2 Mar 2009 08:58:31 +1030 Subject: [PATCH] * wesnoth-mode.el (wesnoth-parent-tag): Fixed a bug where incorrectly formatted parent reference would be returned in some circumstances. --- wesnoth-mode.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wesnoth-mode.el b/wesnoth-mode.el index d987eda..e39c3bc 100644 --- a/wesnoth-mode.el +++ b/wesnoth-mode.el @@ -536,7 +536,10 @@ Otherwise, return a string containing the name of the parent tag." t) (string= (match-string 0) "{"))))) (cons t position) - (cons (substring parent 1 (1- (length parent))) position)))))))) + (cons (substring parent (if (string-match "[\\+.+]" parent) + 2 + 1) + (1- (length parent))) position)))))))) (defun wesnoth-partial-macro-p () "Return non-nil if point is in a partial macro." -- 2.11.4.GIT