linenoiseHistoryAdd() reworked + duplicated lines prevented.
linenoiseHistoryAdd() reworked + duplicated lines prevented.

MoarVM/linenoise,rlonstein/linenoise,antirez/linenoise,John-Colvin/linenoise,dragontux/linenoise,zaxbbun/linenoise,digsrc/linenoise,clibs/linenoise,saisai/linenoise,tadzik/linenoise,arnognulf/linenoise,AresTao/linenoise,howerj/libline,hoelzro/linenoise