mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 21:06:59 -04:00
Fixed: keyword expanding could hang if there is a keyword that matches "";
Fixed: drop down list now stays open after mouse out the second time it is used; Fixed some typos in comments; Disabled 'check updates' menu item for 0.3.5 release git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@711 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -479,6 +479,7 @@ String KeywordDatabase::expand(const String& text,
|
||||
kw->match_re.GetMatch(&start_u, &len_u, 0);
|
||||
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);
|
||||
|
||||
// Split the keyword, set parameters in context
|
||||
|
||||
Reference in New Issue
Block a user