about summary refs log tree commit diff
path: root/users/wpcarro/emacs
diff options
context:
space:
mode:
Diffstat (limited to 'users/wpcarro/emacs')
-rw-r--r--users/wpcarro/emacs/pkgs/vterm-mgt/vterm-mgt.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/users/wpcarro/emacs/pkgs/vterm-mgt/vterm-mgt.el b/users/wpcarro/emacs/pkgs/vterm-mgt/vterm-mgt.el
index d61b76ab2c91..c082e54a5976 100644
--- a/users/wpcarro/emacs/pkgs/vterm-mgt/vterm-mgt.el
+++ b/users/wpcarro/emacs/pkgs/vterm-mgt/vterm-mgt.el
@@ -46,9 +46,10 @@
   "Return t if the buffer B is a vterm instance."
   (equal 'vterm-mode (buffer-local-value 'major-mode b)))
 
-(defmacro vterm-mgt--assert-vterm-buffer ()
+(defun vterm-mgt--assert-vterm-buffer ()
   "Error when the `current-buffer' is not a vterm buffer."
-  '(prelude-assert (vterm-mgt--instance? (current-buffer))))
+  (unless (vterm-mgt--instance? (current-buffer))
+    (error "Current buffer is not a vterm buffer")))
 
 (defun vterm-mgt-next ()
   "Replace the current buffer with the next item in `vterm-mgt--instances'.