1
0
mirror of https://github.com/jojojames/evil-collection.git synced 2024-06-22 07:06:37 +02:00

vterm-exit-functions now sends event as 2nd arg.

This commit is contained in:
Sunn Yao 2019-12-10 10:32:37 +08:00 committed by James N
parent 9566f1ad72
commit 21d7553ab0

View File

@ -40,7 +40,7 @@ Moving cursor backwards is the default vim behavior but
it is not appropriate in some cases like terminals."
(setq-local evil-move-cursor-back nil))
(defun evil-collection-vterm-exit-function (buffer)
(defun evil-collection-vterm-exit-function (buffer &optional event)
"Automatically kill `vterm' buffer on exit."
(when buffer
(kill-buffer buffer)))