Browse history with Up/Down arrows when possible
Browse history with Up/Down arrows when possible

This allows to browse history with Up/Down arrows, taking
multi-line statements into consideration. Cursor must be
located either in the first or last line of a multi-line
statement. Support for Ctrl+Up/Down has been kept.

wyom/sympy-live,wyom/sympy-live