mirror of
https://github.com/TermoraDev/termora.git
synced 2026-01-16 02:12:58 +08:00
fix: highlighter CJK characters (#511)
This commit is contained in:
@@ -121,7 +121,6 @@ class KeywordHighlightPaintListener private constructor() : TerminalPaintListene
|
|||||||
data.add(mutableListOf())
|
data.add(mutableListOf())
|
||||||
for (c in e.chars()) {
|
for (c in e.chars()) {
|
||||||
if (c.first.isNull) break
|
if (c.first.isNull) break
|
||||||
if (c.first.isSoftHyphen) continue
|
|
||||||
data.last().add(c.first)
|
data.last().add(c.first)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user