Fix ClearProcess

This commit is contained in:
2026-02-14 17:03:12 -05:00
parent f4fdf65528
commit b6ebd22463
9 changed files with 24 additions and 12 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ func ClearProcess(assignedContents []byte) error {
if err != nil {
return errors.New("unable to read clipboard contents")
}
if bytes.Equal(assignedContents, newContents) {
if bytes.Equal(assignedContents, bytes.TrimRight(newContents, "\r\n")) {
if err = clearClipboard(); err != nil {
return err
}