summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordelthas <delthas@dille.cc>2022-10-19 12:10:39 +0200
committerdelthas <delthas@dille.cc>2022-10-19 12:10:39 +0200
commitb3377c58ffb0bc07d222258ea578bdab723b2ec8 (patch)
treedd14ff379a652efcb787f3e4472faf86efd861ed
parentClear highlights from MARKREAD when only NotifyNone lines are left (diff)
Render the Unicode replacement character properly
Previously, we stopped rendering a line on its first Unicode replacement character, because we used that special value for detecting invalid Unicode bytes. Now that we pre-process incoming strings to replace invalid Unicode bytes with the Unicode replacement character [1], there is no need to stop rendering a string on this character: it should just be passed through as is. [1]: 700139404044730a726af7cd57e3d2dbc07871ea
-rw-r--r--ui/style.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/ui/style.go b/ui/style.go
index aa6683a..9a662e3 100644
--- a/ui/style.go
+++ b/ui/style.go
@@ -274,9 +274,6 @@ func IRCString(raw string) StyledString {
for len(raw) != 0 {
r, runeSize := utf8.DecodeRuneInString(raw)
- if r == utf8.RuneError {
- break
- }
_, _, lastAttrs := last.Decompose()
current := last
if r == 0x0F {