(eshell-previous-matching-input):

Start the deletion from the end of the output.
This commit is contained in:
Richard M. Stallman 2004-12-30 01:47:35 +00:00
parent 188577ceca
commit de653a636e

View file

@ -840,7 +840,7 @@ If N is negative, find the next or Nth next match."
(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))
(delete-region eshell-last-output-end (point))
(insert-and-inherit (eshell-get-history pos)))))
(defun eshell-next-matching-input (regexp arg)