Browse Source

Don't use (end-of-buffer) in code.

* org-eshell.el (org-eshell-open): Use (goto-char (point-max))
instead of (end-of-buffer).
Bastien Guerry 13 năm trước cách đây
mục cha
commit
710c073971
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lisp/org-eshell.el

+ 1 - 1
lisp/org-eshell.el

@@ -46,7 +46,7 @@
      (if (get-buffer eshell-buffer-name)
        (org-pop-to-buffer-same-window eshell-buffer-name)
        (eshell))
-     (end-of-buffer)
+     (goto-char (point-max))
      (eshell-kill-input)
      (insert command)
      (eshell-send-input)))