diff options
context:
space:
mode:
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Clean up the whole tree
Diffstat (limited to '')
-rw-r--r--source/ui-atom.c3
1 file changed, 1 insertion, 2 deletions
diff --git a/source/ui-atom.c b/source/ui-atom.c
index 3eb4332..46039a0 100644
--- a/source/ui-atom.c
+++ b/source/ui-atom.c
@@ -87,8 +87,7 @@ static void xml_txt(const char *txt)
strbuf_addstr(&sb, XML_REPLACEMENT);
} else if ((seq = utf8_seq_len(p, left))) {
// U+FFFE and U+FFFF are valid UTF-8 but not XML.
- if (seq == 3 && p[0] == 0xef && p[1] == 0xbf &&
- p[2] >= 0xbe)
+ if (seq == 3 && p[0] == 0xef && p[1] == 0xbf && p[2] >= 0xbe)
strbuf_addstr(&sb, XML_REPLACEMENT);
else
strbuf_add(&sb, p, seq);