Reset history position when leaving command line (#953)
Reset history position when leaving command line (#953)

Previously the history position was only reset when executing the
history prev/next command in normal mode, so it was not reset if you
entered command-line mode then started moving through the history.
gokcehan/lf,gokcehan/lf