Commit 3f75af1b authored by John Wiegley's avatar John Wiegley
Browse files

(eshell-previous-matching-input): Don't display "History item" if the

the minibuffer is active.
parent 00fbbecd
......@@ -816,7 +816,8 @@ If N is negative, find the next or Nth next match."
(if (null pos)
(error "Not found")
(setq eshell-history-index pos)
(message "History item: %d" (- (ring-length eshell-history-ring) pos))
(unless (minibuffer-window-active-p (selected-window))
(message "History item: %d" (- (ring-length eshell-history-ring) pos)))
;; Can't use kill-region as it sets this-command
(delete-region (save-excursion (eshell-bol) (point)) (point))
(insert-and-inherit (eshell-get-history pos)))))
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