Skip to content

Commit

Permalink
Merge pull request #24 from kyagi/switch-shell-feature
Browse files Browse the repository at this point in the history
Switch buffer when prefix-arg is specified instead of closing
  • Loading branch information
syohex committed May 29, 2015
2 parents cfd99de + 8c5acd3 commit 86981a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shell-pop.el
Expand Up @@ -186,7 +186,9 @@ The input format is the same as that of `kbd'."
(defun shell-pop (arg)
(interactive "P")
(if (string= (buffer-name) shell-pop-last-shell-buffer-name)
(shell-pop-out)
(if (null arg)
(shell-pop-out)
(shell-pop--switch-to-shell-buffer (prefix-numeric-value arg)))
(shell-pop-up (or arg shell-pop-last-shell-buffer-index))))

(defun shell-pop--cd-to-cwd-eshell (cwd)
Expand Down

0 comments on commit 86981a1

Please sign in to comment.