When redrawing the readline prompt also update the cursor position
commitaed7113e075464b8baba41080c93cf89df7ebd6b
authorJonas Fonseca <jonas.fonseca@gmail.com>
Mon, 30 Mar 2015 11:43:37 +0000 (30 07:43 -0400)
committerJonas Fonseca <jonas.fonseca@gmail.com>
Mon, 30 Mar 2015 11:43:37 +0000 (30 07:43 -0400)
tree29fed51a692c1a08465ab70c2588541476b103ae
parenta57c97b3c094a1ad2fd6427635dca56c2c9f635d
When redrawing the readline prompt also update the cursor position

In the prompt, moving the cursor back and forth will correctly set the
internal cursor position, allowing for editing the input, but the visual
cursor was permanently stuck to the end of the line. Fix this by moving
the cursor to readline's internal cursor position.

Fixes #396
NEWS.adoc
src/prompt.c