Commit 54c548db authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(next-history-element):

Cope if minibuffer-text-before-history is nil.
parent bb40e751
......@@ -723,7 +723,7 @@ If N is negative, find the previous or Nth previous match."
(cond ((= narg -1)
(setq elt minibuffer-default))
((= narg 0)
(setq elt minibuffer-text-before-history)
(setq elt (or minibuffer-text-before-history ""))
(setq minibuffer-text-before-history nil))
(t (setq elt (nth (1- minibuffer-history-position)
(symbol-value minibuffer-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