mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-08-28 04:46:42 -04:00
Fix ClearProcess
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user