Bug fix of Ctrl-R and error message position.
Bug fix of Ctrl-R and error message position.

The issue was that the error message preceded the prompt
that executed the command causing the error.

antmicro/AntShell