Support paste to command line

This change will redirect a paste operation when in command line mode.
It will no longer edit the underlying buffer but instead paste to the
command line which is currently in progress

closes #1006