(eshell-previous-matching-input):
Start the deletion from the end of the output.
This commit is contained in:
parent
188577ceca
commit
de653a636e
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue