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;