From 1d9fbf37f5cd65343fc2fe5f075b450ff28307ee Mon Sep 17 00:00:00 2001 From: Chris Mann Date: Tue, 7 Oct 2008 21:54:26 +1030 Subject: [PATCH] * wesnoth-mode.el (wesnoth-complete-attribute): Prevent '=' being added if entered at prompt. --- wesnoth-mode.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wesnoth-mode.el b/wesnoth-mode.el index 050bdb7..779f3ed 100644 --- a/wesnoth-mode.el +++ b/wesnoth-mode.el @@ -340,7 +340,10 @@ If COMPLETEP is non-nil, attempt to complete the attribute at point." (delete-region (progn (back-to-indentation) (point)) (progn (end-of-line) (point))) (insert attribute "=")) - (wesnoth-insert-element-separately attribute "=")) + (wesnoth-insert-element-separately attribute + (if (string-match "=" attribute) + "" + "="))) (save-excursion (wesnoth-indent))))) -- 2.11.4.GIT