mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-10-01 01:06:10 -04: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