As I'm reviewing the change, I'd suggest to remove word breaking characters entirely as they would introduce the same issues. In other words `Readline.basic_word_break_characters= ""` .