summaryrefslogtreecommitdiff
path: root/modes/vterm
diff options
context:
space:
mode:
authorSunn Yao <sunyour@gmail.com>2019-12-10 10:32:37 +0800
committerJames N <james@jojojames.com>2019-12-09 19:32:45 -0800
commit21d7553ab0ad4ad16fe048f0b65fad46e7db9ad6 (patch)
treedc4db9f62419dac886c36e646eb49bfaf25b4d91 /modes/vterm
parent9566f1ad7272b16368485c47c9d00766d50d7a3e (diff)
vterm-exit-functions now sends event as 2nd arg.
Diffstat (limited to 'modes/vterm')
-rw-r--r--modes/vterm/evil-collection-vterm.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/modes/vterm/evil-collection-vterm.el b/modes/vterm/evil-collection-vterm.el
index abe0399..b955f34 100644
--- a/modes/vterm/evil-collection-vterm.el
+++ b/modes/vterm/evil-collection-vterm.el
@@ -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)))