Fix c/c++-ts-mode's mode lighter
* lisp/progmodes/c-ts-mode.el (c-ts-mode-set-modeline): Remove trailing blank from comment-start when indicating the comment style on the mode line.
This commit is contained in:
parent
67befc1f5a
commit
a72a55e3e4
1 changed files with 2 additions and 1 deletions
|
@ -109,7 +109,8 @@ just toggles it when zero or left out."
|
|||
|
||||
(defun c-ts-mode-set-modeline ()
|
||||
(setq mode-name
|
||||
(concat (if (eq major-mode 'c-ts-mode) "C" "C++") comment-start))
|
||||
(concat (if (eq major-mode 'c-ts-mode) "C" "C++")
|
||||
(string-trim-right comment-start)))
|
||||
(force-mode-line-update))
|
||||
|
||||
(defun c-ts-mode--indent-style-setter (sym val)
|
||||
|
|
Loading…
Add table
Reference in a new issue