term/{eshell,vterm}: remove already in * buffer check

Allows users to spawn additional eshell/vterm buffers, if they like.
This commit is contained in:
Henrik Lissner
2019-08-22 14:44:14 -04:00
parent aff5cc5b28
commit 2485123164
2 changed files with 0 additions and 4 deletions

View File

@@ -117,8 +117,6 @@
(defun +eshell/here (&optional command)
"Open eshell in the current buffer."
(interactive "P")
(when (eq major-mode 'eshell-mode)
(user-error "Already in an eshell buffer"))
(let ((buf (+eshell--unused-buffer)))
(with-current-buffer (switch-to-buffer buf)
(if (eq major-mode 'eshell-mode)