aboutsummaryrefslogtreecommitdiff
path: root/vterm.el
diff options
context:
space:
mode:
authorjixiuf <jixiuf@qq.com>2021-08-03 14:11:42 +0800
committerjixiuf <jixiuf@qq.com>2021-08-03 14:11:42 +0800
commit0ec407841ddc81fa4546abe115c12eb7c6c71521 (patch)
treebd212192fac780514b70924b81a317aeb5892581 /vterm.el
parentdd9f5066eb26608714aa418d61192a2da2f8a041 (diff)
fix bug of #531 (vterm--internal) should return created vterm buffer
Diffstat (limited to 'vterm.el')
-rw-r--r--vterm.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/vterm.el b/vterm.el
index 4a6acc1..c82059f 100644
--- a/vterm.el
+++ b/vterm.el
@@ -1242,7 +1242,8 @@ value of `vterm-buffer-name'."
(funcall pop-to-buf-fun buf)
(with-current-buffer buf
(unless (derived-mode-p 'vterm-mode)
- (vterm-mode)))))
+ (vterm-mode)))
+ buf))
;;; Internal