Change the "max-history-size" setting
a Settings instance
the maximum number of items the history can contain