Skip to content

Commit

Permalink
Don't add an empty string to the clipboard
Browse files Browse the repository at this point in the history
  • Loading branch information
danlucraft committed Jan 31, 2010
1 parent c9643de commit 0873482
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/application/lib/application/clipboard.rb
Expand Up @@ -24,6 +24,8 @@ def <<(text)
if text.is_a?(String)
text = [text]
end
return if text == [""]

@contents << text
if @contents.length == Clipboard.max_length + 1
@contents.delete_at(0)
Expand Down

0 comments on commit 0873482

Please sign in to comment.