* lisp/minibuffer.el (minibuffer-restore-completion-input): When
the empty cached completion input is empty, report it as
non-existent.
(base-size (length base))
(prompt-end (minibuffer-prompt-end)))
(setq completion--input nil)
- (unless (and string (<= (+ prompt-end base-size) (point-max))
+ (unless (and string (< (+ prompt-end base-size) (point-max))
;; Don't restore if the base part has changed.
(equal base (buffer-substring-no-properties
prompt-end (+ prompt-end base-size))))