linenoise: Swallow consecutive duplicate history records

This way it's much easier to go through the history when you are testing stuff.