Skip to content

Commit

Permalink
Linux: Update only start or end of text items from mouse selections
Browse files Browse the repository at this point in the history
This may avoid some unexpected item updates.
  • Loading branch information
hluk committed Jan 18, 2024
1 parent 065a581 commit ed0196f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/clipboardbrowser.cpp
Expand Up @@ -1658,7 +1658,7 @@ void ClipboardBrowser::addUnique(const QVariantMap &data, ClipboardMode mode)
const auto oldText = getTextData(previousData);
if ( (mode == ClipboardMode::Clipboard)
? (newText == oldText)
: newText.contains(oldText) )
: (newText.startsWith(oldText) || newText.endsWith(oldText)) )
{
COPYQ_LOG("New item: Merging with top item");

Expand Down

0 comments on commit ed0196f

Please sign in to comment.