Consider a long bash prompt, with a dummy escape sequence:
PS1=ABCDEFGHIJKLMNOPGRSTUVWXYZ"[\#]"ABCDEFGHIJKLMNOPGRSTUVWXYZ:"\[\e[0m\]"
Now create a terminal emulator window (xterm works); make it narrow
(say 50 characters); type Enter (to get a fresh bash prompt).
Now type ctrl-R. I see:
(reverse-i-search)`': RSTU
I.e. "RSTU" didn't get erased.
The TERM is xterm-256color.
I tried with bash from git, and same result.
--
--Per Bothner
[email protected] http://per.bothner.com/
_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline