Commit de653a63 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files


Start the deletion from the end of the output.
parent 188577ce
......@@ -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)
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