Fixed wrong order of history items.
authorDaniel Carl <danielcarl@gmx.de>
Wed, 5 Jun 2013 22:35:53 +0000 (00:35 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Thu, 6 Jun 2013 08:01:37 +0000 (10:01 +0200)
commita77c368926375ee52e3105beb560b310fc1aef64
tree1cd25d2cff425bb19cf2819234a8678dd368fef6
parent5483001be790ced9f914ebb4699276ca04fd63fb
Fixed wrong order of history items.

The order of the history items available by '/<up>' or ':<up>' was
wrong, the first items should be the latest added command and not the
oldest one.

This patch fixes also wrong ordering of history entries in the files in case
when the number of items in the files is higher than the configured maximum
history items.
src/history.c