Skip to content

Commit 0ec4078

Browse files
committed
fix bug of #531 (vterm--internal) should return created vterm buffer
1 parent dd9f506 commit 0ec4078

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vterm.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,8 @@ value of `vterm-buffer-name'."
12421242
(funcall pop-to-buf-fun buf)
12431243
(with-current-buffer buf
12441244
(unless (derived-mode-p 'vterm-mode)
1245-
(vterm-mode)))))
1245+
(vterm-mode)))
1246+
buf))
12461247

12471248
;;; Internal
12481249

0 commit comments

Comments
 (0)