diff options
author | bptato <nincsnevem662@gmail.com> | 2024-10-05 20:45:25 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-10-05 20:45:25 +0200 |
commit | 7bfcef1bb2538d6fde0cf6bc589bff705207fa8e (patch) | |
tree | f78e6c132f553f63443cc4ca8fd70de05cd19d1d /src | |
parent | 954cef984a70c6e81ec9921a7a9c6982b9ff66e0 (diff) | |
download | chawan-master.tar.gz |
Diffstat (limited to 'src')
-rw-r--r-- | src/local/term.nim | 9 | ||||
-rw-r--r-- | src/version.nim | 2 |
2 files changed, 1 insertions, 10 deletions
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) |