]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7128 fs_cli: ignore duplicate lines in history
authorDušan Dragić <dragic.dusan@gmail.com>
Sat, 3 Jan 2015 22:46:19 +0000 (23:46 +0100)
committerDušan Dragić <dragic.dusan@gmail.com>
Sat, 3 Jan 2015 22:46:19 +0000 (23:46 +0100)
libs/esl/fs_cli.c

index bab2d5b3b2a18efe3c3a0c38c1bd017923af9afa..acfa0c2c3e940b46c3a5bcb896cf4a29dea70464 100644 (file)
@@ -1674,6 +1674,8 @@ int main(int argc, char *argv[])
                goto done;
        }
        history(myhistory, &ev, H_SETSIZE, 800);
+       /* Ignore duplicate lines */
+       history(myhistory, &ev, H_SETUNIQUE, 1);
        el_set(el, EL_HIST, history, myhistory);
        if (use_history_file) history(myhistory, &ev, H_LOAD, hfile);
        el_source(el, NULL);