From 661290e8d7c77c889ad6058c407f750923e8c3c6 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 4 Oct 2019 21:25:52 -0400 Subject: [PATCH] lang/sh: fix +sh/open-repl --- modules/lang/sh/autoload.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/lang/sh/autoload.el b/modules/lang/sh/autoload.el index 886cfcad1..9310e63e6 100644 --- a/modules/lang/sh/autoload.el +++ b/modules/lang/sh/autoload.el @@ -29,8 +29,10 @@ ;;;###autoload (defun +sh/open-repl () "Open a shell REPL." + (interactive) (let* ((dest-sh (symbol-name sh-shell)) (sh-shell-file dest-sh)) (sh-shell-process t) (with-current-buffer "*shell*" - (rename-buffer (format "*shell [%s]*" dest-sh))))) + (rename-buffer (format "*shell [%s]*" dest-sh)) + (current-buffer))))