--- em-hist.el 27 Apr 2004 14:54:39 +0100 1.15 +++ em-hist.el 26 Nov 2004 18:05:56 +0000 @@ -840,7 +840,7 @@ (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)