Skip to content

Commit

Permalink
Aight, no more string-replace
Browse files Browse the repository at this point in the history
Signed-off-by: Psionik K <[email protected]>
  • Loading branch information
psionic-k committed Nov 17, 2023
1 parent 543344f commit 9a4b2b6
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions command-log.el
Original file line number Diff line number Diff line change
Expand Up @@ -699,13 +699,17 @@ hook."
(set-marker-insertion-type command-log--self-insert-end t))
(setq command-log--self-insert-string
(concat command-log--self-insert-string (kbd keys)))
(insert (propertize
(format
command-log-text-format
(string-replace " " command-log-text-space
command-log--self-insert-string))
'face 'command-log-text-face))
(newline))
(insert
(propertize
(format
command-log-text-format
;; 32 is space and I always wish I could write it more
;; explicitly lol
(subst-char-in-string 32
(char-to-string command-log-text-space)
command-log--self-insert-string)
'face 'command-log-text-face))
(newline))

(t
(insert
Expand Down

0 comments on commit 9a4b2b6

Please sign in to comment.