Mercurial > emacs
changeset 59196:a2a95f34b949
(eshell-previous-matching-input):
Start the deletion from the end of the output.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 30 Dec 2004 01:47:35 +0000 |
parents | d299cf144f86 |
children | dc445634487d |
files | lisp/eshell/em-hist.el |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/eshell/em-hist.el Wed Dec 29 22:18:41 2004 +0000 +++ b/lisp/eshell/em-hist.el Thu Dec 30 01:47:35 2004 +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)