Optimization of history saving.
commit5ffcffbeb6bdda29698bc823e389f5126b13ef08
authorAndrew Borodin <aborodin@vmail.ru>
Fri, 1 Jul 2011 08:50:03 +0000 (1 12:50 +0400)
committerAndrew Borodin <aborodin@vmail.ru>
Thu, 7 Jul 2011 10:19:15 +0000 (7 14:19 +0400)
treeb6ea1447cfdfa6013d0ec47ceedfe66a75ec4aee
parent1a343a1a478b86fdaeb8ee0b4e7a6f47757ca538
Optimization of history saving.

Now history is not saved if it was not modified and content of input
line is equal to history top entry. Thanks Francesco Cosoleto
<cosoleto at gmail dot com> for the original patch.

Also fixed a regression introduced in cff59255982d470b11a97408d7d3571b03b8401a:
after CK_HistoryNext and CK_HistoryPrev actions in input line,
the input line content is not put to the top of history.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
lib/widget/input.c
lib/widget/input.h