]> git.eshelyaron.com Git - emacs.git/commitdiff
(eshell-previous-matching-input): Don't display "History item" if the
authorJohn Wiegley <johnw@newartisans.com>
Wed, 11 Apr 2001 15:49:31 +0000 (15:49 +0000)
committerJohn Wiegley <johnw@newartisans.com>
Wed, 11 Apr 2001 15:49:31 +0000 (15:49 +0000)
the minibuffer is active.

lisp/eshell/em-hist.el

index 985e3e11cb029bb3603f0141cc9353c8728c197d..72dfd449763d542698a1f112c719213e5f9f398a 100644 (file)
@@ -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)))))