From cefe0823f7c2f6d968bd8725fd5ed64082b9065e Mon Sep 17 00:00:00 2001 From: twanvl Date: Fri, 11 Jan 2008 21:40:17 +0000 Subject: [PATCH] fixed: reminder text of a keyword can not be disabled if that keyword appears as the start of another word before it. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@818 0fc631ac-6414-0410-93d0-97cfa31319b6 --- src/data/keyword.cpp | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/data/keyword.cpp b/src/data/keyword.cpp index 7abfa1dd..f2784208 100644 --- a/src/data/keyword.cpp +++ b/src/data/keyword.cpp @@ -483,7 +483,24 @@ String KeywordDatabase::expand(const String& text, size_t start = untagged_to_index(s, start_u, true), end = untagged_to_index(s, start_u + len_u, true); if (start == end) continue; // don't match empty keywords - result += s.substr(0, start); + // copy text before keyword + result += remove_tag(s.substr(0, start), _(" + } else if (is_substr(s, j, _("