Package: bash
Version: 4.4-5
Severity: normal

Dear Maintainer,

When bracketed paste mode is enabled on bash, attempting to mouse paste
(middle click) into the search prompt closes the prompt, and results in
pasting into the command again.

Steps to reproduce:

1. Enable bracketed paste
$ bind 'enable-bracketed-paste on'
OR
add "enable-bracketed-paste on" to ~/.inputrc

2. Open a bash terminal.

3. Press CTRL-R

4. Highlight a snippet of text elsewhere to search

5. Middle click on bash terminal.

Expected result: It shows search results from the command history.

Actual result: Search prompt is dismissed and test is pasted onto the
command prompt.

zsh also has a similar history search, and it works as expected when
bracketed paste is enabled. For this reason, I believe the issue is
specific to bash.

-- System Information:
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-6-amd64 (SMP w/12 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages bash depends on:
ii  base-files   10
ii  dash         0.5.8-2.5
ii  debianutils  4.8.2
ii  libc6        2.24-12
ii  libtinfo5    6.0+20171125-1

Versions of packages bash recommends:
ii  bash-completion  1:2.1-4.3

Versions of packages bash suggests:
pn  bash-doc  <none>

-- Configuration Files:
/etc/bash.bashrc changed [not included]
/etc/skel/.bashrc changed [not included]

-- no debconf information

Reply via email to