Skip to content

Commit

Permalink
Avoid unprintable literals
Browse files Browse the repository at this point in the history
  • Loading branch information
wasamasa committed Jan 11, 2021
1 parent 9c91a59 commit 265f36c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lui-irc-colors.el
Original file line number Diff line number Diff line change
Expand Up @@ -127,22 +127,22 @@ This is an appropriate function for `lui-pre-output-hook'."
(replace-match "")
(setq start (point))
(cond
((string= code "")
((string= code "\x02")
(setq boldp (not boldp)))
((string= code "")
((string= code "\x16")
(setq inversep (not inversep)))
((string= code "")
((string= code "\x1D")
(setq italicp (not italicp)))
((string= code "")
((string= code "\x1F")
(setq underlinep (not underlinep)))
((string= code "")
((string= code "\x0F")
(setq boldp nil
inversep nil
italicp nil
underlinep nil
fg nil
bg nil))
((string= code "")
((string= code "\x03")
(if (looking-at "\\([0-9][0-9]?\\)\\(,\\([0-9][0-9]?\\)\\)?")
(progn
(setq fg (string-to-number (match-string 1))
Expand Down

0 comments on commit 265f36c

Please # to comment.