From fffdce5cb52d16796e394425760063c6e9838ef7 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 8 Jul 2020 09:33:35 +0400 Subject: [PATCH] Fix copying text with links containing a newline. --- ui/text/text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/text/text.cpp b/ui/text/text.cpp index 3acc621..9d1f8a1 100644 --- a/ui/text/text.cpp +++ b/ui/text/text.cpp @@ -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; }