Commit 2fdf3ee2 authored by Brian Fox's avatar Brian Fox

(read_minibuf): Don't add history item if it is

string-equal to the most recent history item.
parent 03383aaf
......@@ -254,7 +254,9 @@ read_minibuf (map, initial, prompt, backup_n, expflag, histvar, histpos)
/* Add the value to the appropriate history list. */
if (XTYPE (Vminibuffer_history_variable) == Lisp_Symbol
&& ! EQ (XSYMBOL (Vminibuffer_history_variable)->value, Qunbound))
&& ! EQ (XSYMBOL (Vminibuffer_history_variable)->value, Qunbound)
&& NILP (Fstring_equal
(val, Fcar (Fsymbol_value (Vminibuffer_history_variable)))))
Fset (Vminibuffer_history_variable,
Fcons (val, Fsymbol_value (Vminibuffer_history_variable)));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment