mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-02-16 16:24:18 +00:00
Don't take mvti as an argument
This commit is contained in:
parent
06d35358e4
commit
a584bcc210
1 changed files with 6 additions and 7 deletions
|
|
@ -44,12 +44,11 @@
|
|||
(defvar mvt/regex
|
||||
(rx (and "*" (group (+ nonl)) "-vterm<" (group (+ digit)) ">" "*")))
|
||||
|
||||
(defun mvt/create-buffer (tab-name mvti)
|
||||
(defun mvt/create-buffer (tab-name)
|
||||
(interactive
|
||||
(let ((name (alist-get 'name (tab-bar--current-tab))))
|
||||
(list name
|
||||
(gethash (intern name) mvt/info))))
|
||||
(let ((index (or (pop (slot-value mvti 'free-numbers))
|
||||
(list (alist-get 'name (tab-bar--current-tab))))
|
||||
(let* ((mvti (gethash (intern tab-name) mvt/info))
|
||||
(index (or (pop (slot-value mvti 'free-numbers))
|
||||
(cl-incf (slot-value mvti 'max-number))))
|
||||
vterm-name)
|
||||
(setq vterm-name (mvt/format-buffer-name tab-name index))
|
||||
|
|
|
|||
Loading…
Reference in a new issue