Hello Tom,
> The attached patch teaches psql to redisplay any not-yet-executed
> query text after editing with \e.
>
> [...]
I've tested this patch. Although I agree that it is an improvement, I'm a
little at odd with the feature as is:
psql=> \e
# select 1...
then:
psql=> select 1...
psql-> <prompt>
I cannot move back with readline to edit further, I'm stuck there, which
is strange. I would prefer a simpler:
psql=> select 1...<prompt>
that would also be readline-aware, so that I know I'm there and ready to
nl but also to edit directly if I want that.
That would suggest to remove the ending newline rather than appending it,
and possibly to discuss a little bit with readline as well so that the
display line is also the current line for its point of view, so that it
can be edited further?
--
Fabien.