mirror of
https://github.com/nomic-ai/gpt4all
synced 2024-11-04 12:00:10 +00:00
Make the copy button a little more tolerant.
This commit is contained in:
parent
508993de75
commit
ce7333029f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user