Explorar o código

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 %!s(int64=13) %!d(string=hai) anos
pai
achega
710c073971
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)))