diff --git a/lib/chagashi b/lib/chagashi
-Subproject b972e55c34ceffbfa42b3c3c552f98c4b8044fc
+Subproject f77bd4183aad90aca00f387844de2ef8f75ce84
diff --git a/src/local/term.nim b/src/local/term.nim
index c984e9d8..d99da8ed 100644
--- a/src/local/term.nim
+++ b/src/local/term.nim
@@ -488,15 +488,6 @@ proc encodeAllQMark(res: var string; start: int; te: TextEncoder;
w += 1 - te.c.width()
n = res.len
-proc validateUTF8Surr(s: openArray[char]; start = 0): int =
- #TODO move to chagashi
- var ctx = initTextDecoderContext(CHARSET_UTF_8, errorMode = demFatal)
- for chunk in ctx.decode(s.toOpenArrayByte(0, s.high), finish = true):
- discard
- if ctx.failed:
- return ctx.td.ri + 1
- return -1
-
proc processOutputString*(res: var string; term: Terminal; s: openArray[char];
w: var int) =
if s.len == 0:
diff --git a/src/version.nim b/src/version.nim
index c616985b..4798b98b 100644
--- a/src/version.nim
+++ b/src/version.nim
@@ -27,6 +27,6 @@ tryImport chame/version, "chame"
tryImport monoucha/version, "monoucha"
static:
- checkVersion("chagashi", 0, 5, 6)
+ checkVersion("chagashi", 0, 6, 0)
checkVersion("chame", 1, 0, 1)
checkVersion("monoucha", 0, 5, 1)
|