This commit is contained in:
Ajai Khatri Nelson 2026-03-20 13:06:17 -07:00 committed by GitHub
commit ef7fbbfe19
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,6 +34,9 @@ Returns the vterm buffer."
buffer-name)
return buf)
(get-buffer-create buffer-name))))
;; Explicitly require vterm before `with-current-buffer', since
;; loading vterm can change the current buffer
(require 'vterm)
(with-current-buffer buffer
(unless (eq major-mode 'vterm-mode)
(vterm-mode))