Fix in_tag and is_tag calls, fixes #47

This commit is contained in:
Twan van Laarhoven
2020-05-19 22:59:38 +02:00
parent a0f077e3b6
commit 09139128e1
5 changed files with 25 additions and 10 deletions
+1 -1
View File
@@ -203,7 +203,7 @@ unique_ptr<TextValueAction> typing_action(const TextValueP& value, size_t start_
TextToggleReminderAction::TextToggleReminderAction(const TextValueP& value, size_t pos_in)
: ValueAction(value)
{
pos = in_tag(value->value(), _("<kw-"), pos_in, pos_in);
pos = in_tag(value->value(), _("<kw"), pos_in, pos_in);
if (pos == String::npos) {
throw InternalError(_("TextToggleReminderAction: not in <kw- tag"));
}