Don't remove field focus on empty text selection.

Fixes #4467.
This commit is contained in:
John Preston 2018-03-08 16:03:59 +03:00
parent 56fece6216
commit 2b9133be90

View file

@ -2261,7 +2261,7 @@ auto HistoryInner::getSelectionState() const
if (selected.first->allowsForward()) {
++result.canForwardCount;
}
} else {
} else if (selected.second.from != selected.second.to) {
result.textSelected = true;
}
}