Port GNU Readline-5.2 patch-003
Port GNU Readline-5.2 patch-003

The message from the GNU commit[1] is:

-----
Bug-Reported-by: Peter Volkov <torre_cremata@mail.ru>
Bug-Reference-ID: <1171795523.8021.18.camel@localhost>
Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2007-02/msg00054.html

Bug-Description:

When moving the cursor, bash sometimes misplaces the cursor when the
prompt contains two or more multibyte characters.  The particular
circumstance that uncovered the problem was having the (multibyte)
current directory name in the prompt string.
-----

Tested-by: Mark Somerville <mark@scottishclimbs.com> [F17, MRI 1.9.3]
Signed-off-by: Mark Somerville <mark@scottishclimbs.com>

1 - http://ftp.gnu.org/gnu/readline/readline-5.2-patches/readline52-003

ConnorAtherton/rb-readline,abinoam/rb-readline,rapid7/rb-readline