about summary refs log tree commit diff stats
path: root/src/render
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-12-05 12:23:15 +0100
committerbptato <nincsnevem662@gmail.com>2022-12-05 12:23:15 +0100
commit7fdc3a423754c25c05e376f8a02b7438350ed6eb (patch)
tree66bd9d28444cf5bc14125ddbad48c927bbd7cf82 /src/render
parentb31c6a2072b6897ae1ef355013fcd199496aee82 (diff)
downloadchawan-7fdc3a423754c25c05e376f8a02b7438350ed6eb.tar.gz
Remove unused twtstr functions
Diffstat (limited to 'src/render')
-rw-r--r--src/render/rendertext.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/rendertext.nim b/src/render/rendertext.nim
index 675c4ddb..a43a50c5 100644
--- a/src/render/rendertext.nim
+++ b/src/render/rendertext.nim
@@ -35,7 +35,7 @@ proc renderPlainText*(text: string): FlexibleGrid =
     of '\e':
       i = format.parseAnsiCode(text, i)
       af = true
-    elif text[i].isControlChar():
+    elif text[i] in Controls:
       add_format
       result[^1].str &= '^' & text[i].getControlLetter()
     else:
@@ -92,7 +92,7 @@ proc renderStream*(grid: var FlexibleGrid, renderer: var StreamRenderer, len: in
         renderer.spaces = 0
     of '\e':
       renderer.ansiparser.reset()
-    elif c.isControlChar():
+    elif c in Controls:
       add_format
       grid[^1].str &= '^' & c.getControlLetter()
     else: