Changed method to limit the number of History entries loaded
commit5a5216ffb900a9ca63d4436d79a8e7efe9ffca73
authorChristophe CURIS <christophe.curis@free.fr>
Wed, 8 May 2013 13:44:11 +0000 (8 15:44 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Wed, 8 May 2013 14:05:00 +0000 (8 15:05 +0100)
treea60855d9b6bd27b91410aa8056d25dff366560be
parentbcee0100820e0c5fd84df715a36575f2ca2423e4
Changed method to limit the number of History entries loaded

The previous code limited the number of entries that were read into
the history array, but the user is expecting a maximum on the
number of entries displayed. This can make a little difference in
two cases:
 - if there are duplicate entries (dups are checked for and removed)
 - if some entries are not strings (unlikely, but not impossible)

The new code just stops adding history entries when the user
specified count is reached.
src/dialog.c