about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-10-05 20:45:25 +0200
committerbptato <nincsnevem662@gmail.com>2024-10-05 20:45:25 +0200
commit7bfcef1bb2538d6fde0cf6bc589bff705207fa8e (patch)
treef78e6c132f553f63443cc4ca8fd70de05cd19d1d
parent954cef984a70c6e81ec9921a7a9c6982b9ff66e0 (diff)
downloadchawan-7bfcef1bb2538d6fde0cf6bc589bff705207fa8e.tar.gz
Update Chagashi HEAD master
m---------lib/chagashi0
-rw-r--r--src/local/term.nim9
-rw-r--r--src/version.nim2
3 files changed, 1 insertions, 10 deletions
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)