mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-05 02:02:01 +00:00
FS-7128 fs_cli: ignore duplicate lines in history
This commit is contained in:
parent
0bec209a9b
commit
2406abdb76
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user