diff options
Diffstat (limited to 'lisp/terminal.el')
| -rw-r--r-- | lisp/terminal.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/terminal.el b/lisp/terminal.el index 31787a1..c69e569 100644 --- a/lisp/terminal.el +++ b/lisp/terminal.el @@ -10,7 +10,7 @@ ;;; ;; Global variable that we use for the custom modeline. -(defvar vterm-buffer-title nil +(defvar vterm-buffer-titles (make-hash-table) "Title set by shell program.") ;; Some niceties for creating VTerm buffers with descriptive names. @@ -45,7 +45,7 @@ Otherwise, switch to the first available vterm buffer." :config (defun vterm--set-title (title) "Use TITLE to set the buffer name according to `vterm-buffer-name-string'." - (setq vterm-buffer-title title)) + (puthash (current-buffer) title vterm-buffer-titles)) ;; Custom keybindings for cycling through open VTerm buffers. :bind |