diff --git a/shell-pop.el b/shell-pop.el index d3fb198..fc2a735 100644 --- a/shell-pop.el +++ b/shell-pop.el @@ -204,7 +204,7 @@ The input format is the same as that of `kbd'." (eshell-reset))) (defun shell-pop--cd-to-cwd-shell (cwd) - (end-of-buffer) + (goto-char (point-max)) (comint-kill-input) (insert (concat "cd " (shell-quote-argument cwd))) (let ((comint-process-echoes t))