diff options
Diffstat (limited to 'lisp/appearance')
| -rw-r--r-- | lisp/appearance/modeline.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/appearance/modeline.el b/lisp/appearance/modeline.el index 042142f..b598ccd 100644 --- a/lisp/appearance/modeline.el +++ b/lisp/appearance/modeline.el @@ -106,9 +106,11 @@ RIGHT aligned respectively." "] [%*] Ln: %l/" (number-to-string (1+ (count-lines 1 (point-max)))) " Col: %c")) - ((and (eq major-mode 'vterm-mode) (boundp 'vterm-buffer-title) vterm-buffer-title) + ((and (eq major-mode 'vterm-mode) + (boundp 'vterm-buffer-titles) + (gethash (current-buffer) vterm-buffer-titles)) (concat "%b [%m: " - vterm-buffer-title + (gethash (current-buffer) vterm-buffer-titles) "] [%*] Ln: %l/" (number-to-string (1+ (count-lines 1 (point-max)))) " Col: %c")) |