MXS-1858 Don't save duplicate of a command in MaxAdmin

This commit is contained in:
Marko
2018-07-02 13:41:38 +03:00
parent 2e88ce4132
commit 33ff20622f

View File

@ -145,6 +145,9 @@ void cmd_with_history(int so, char** argv, bool use_emacs)
/* Remember 100 events */
history(hist, &ev, H_SETSIZE, 100);
/* Don't enter duplicate commands to history */
history(hist, &ev, H_SETUNIQUE, 1);
tok = tok_init(NULL); /* Initialize the tokenizer */
/* Initialize editline */