Fix copying text with links containing a newline.

This commit is contained in:
John Preston 2020-07-08 09:33:35 +04:00
parent aed9fe649b
commit fffdce5cb5

View file

@ -3173,7 +3173,7 @@ void String::enumerateText(TextSelection selection, AppendPartCallback appendPar
flagsChangeCallback(flags, blockFlags);
flags = blockFlags;
}
if (i == e || blockFrom >= selection.to) {
if (i == e || (lnkIndex ? lnkFrom : blockFrom) >= selection.to) {
break;
}