removing trailing whitespace
adding test to reproduce onPaste-coammnd-multiselect error
fixing onPaste in command with multiselect
Merge pull request #1261 from LivelyKernel/fix-onPaste-command-multiselect

Fix onPaste when it is used in a command and multiselect is active