Simplify bracketed paste code and strip a single trailing pasted newline.
Simplify bracketed paste code and strip a single trailing pasted newline.

Without stripping the newline, it looks the same as if I'd typed
a command and then pressed Enter, so I end up waiting as if the
command was already running, rather than pressing Enter myself.

mikelward/conf,mikelward/conf