From ce7333029f8e8eb98193afaa1eb52b552afb6ec3 Mon Sep 17 00:00:00 2001 From: Adam Treat Date: Tue, 20 Jun 2023 18:59:08 -0400 Subject: [PATCH] Make the copy button a little more tolerant. --- gpt4all-chat/responsetext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpt4all-chat/responsetext.cpp b/gpt4all-chat/responsetext.cpp index 1b8b9592..eabe3a48 100644 --- a/gpt4all-chat/responsetext.cpp +++ b/gpt4all-chat/responsetext.cpp @@ -352,7 +352,7 @@ QString ResponseText::getLinkAtPosition(int position) const bool ResponseText::tryCopyAtPosition(int position) const { for (const auto © : m_copies) { - if (position >= copy.startPos && position < copy.endPos) { + if (position >= copy.startPos && position <= copy.endPos) { QClipboard *clipboard = QGuiApplication::clipboard(); clipboard->setText(copy.text); return true;