about summary refs log tree commit diff stats
path: root/src/render/rendertext.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/rendertext.nim')
-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 15a58c4c..b893d781 100644
--- a/src/render/rendertext.nim
+++ b/src/render/rendertext.nim
@@ -8,7 +8,7 @@ proc renderPlainText*(text: string): FlexibleGrid =
   template add_format() =
     if af:
       af = false
-      result.addFormat(result.high, result[^1].str.len, format)
+      result[result.high].addFormat(result[^1].str.len, format)
 
   result.addLine()
   var i = 0
@@ -42,7 +42,7 @@ proc renderStream*(stream: Stream): FlexibleGrid =
   template add_format() =
     if af:
       af = false
-      result.addFormat(result.high, result[^1].str.len, format)
+      result[result.high].addFormat(result[^1].str.len, format)
 
   result.addLine()
   var af = false