The current input parser just tries to read from the beginning of the inputbuffer, this might cause issues on connections with lag. ref AESH-141 This will also make the specific code to handle paste obsolete.