4

Ubuntu 22's gnome-terminal lets you click-drag a selection including a terminating newline (say, a command to run). But when you paste it back into the shell by clicking the middle mouse button, the newline is omitted. The command just sits there, waiting for you to hit enter. This behavior wasn't in Ubuntu 18, nor in any earlier X11 implementation that I know of.

(If you paste into, say, vi, the newline is included. So the copying was intact. What's corrupted is the pasting.)

How can I restore the old behavior? One click, instead of a click plus a keystroke.

1 Answers1

2

In ~/.bashrc add the line bind 'set enable-bracketed-paste off'.
The new behavior, bracketed paste on by default, started in bash 5.1.