[apps/poincare] Fix cursor position when inserting log(a,b) in 2DEdition

This commit is contained in:
Léa Saviot
2018-11-21 15:37:27 +01:00
committed by Émilie Feral
parent 73d97944d5
commit c30f136fb3
4 changed files with 18 additions and 20 deletions

View File

@@ -122,9 +122,10 @@ bool textRepresentsAnEquality(const char * text) {
}
bool layoutRepresentsAnEquality(Poincare::Layout l) {
return l.recursivelyMatches(
Poincare::Layout match = l.recursivelyMatches(
[](Poincare::Layout layout) {
return layout.isChar() && static_cast<Poincare::CharLayout &>(layout).character() == '"'; });
return !match.isUninitialized();
}
bool ListController::textFieldDidReceiveEvent(TextField * textField, Ion::Events::Event event) {