summaryrefslogtreecommitdiff
path: root/lisp/appearance
diff options
context:
space:
mode:
authorJakob L. Kreuze2022-06-04 22:59:43 -0400
committerJakob L. Kreuze2022-06-04 22:59:43 -0400
commit0e453758898b91d01c2d77326851dc3e7274855b (patch)
treebcf42665beff13d07b6a894a3f2b1ec61d81c3b0 /lisp/appearance
parent857a4443ea76df1be7ff3a36523438eb10d2ed89 (diff)
[term] Support titles for simultaneously-open terminals
Diffstat (limited to 'lisp/appearance')
-rw-r--r--lisp/appearance/modeline.el6
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"))

© 2015 - 2026 Jakob L. Kreuze