diff options
author | bptato <nincsnevem662@gmail.com> | 2022-12-05 12:23:15 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-12-05 12:23:15 +0100 |
commit | 7fdc3a423754c25c05e376f8a02b7438350ed6eb (patch) | |
tree | 66bd9d28444cf5bc14125ddbad48c927bbd7cf82 /src/render | |
parent | b31c6a2072b6897ae1ef355013fcd199496aee82 (diff) | |
download | chawan-7fdc3a423754c25c05e376f8a02b7438350ed6eb.tar.gz |
Remove unused twtstr functions
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/rendertext.nim | 4 |
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: |