about summary refs log tree commit diff stats
path: root/src/io/buffer.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-02-14 23:37:31 +0100
committerbptato <nincsnevem662@gmail.com>2022-02-14 23:40:53 +0100
commit5098a7a162a4cd7a33ed724d9266ed850013e155 (patch)
tree785f5c548ed72f9408c9356db1858428639918ec /src/io/buffer.nim
parent051d22b17e4c270f925376824a2307ab65ef5aa5 (diff)
downloadchawan-5098a7a162a4cd7a33ed724d9266ed850013e155.tar.gz
Incomplete background-color implementation
Has numerous flaws which will have to be corrected later.
Diffstat (limited to 'src/io/buffer.nim')
-rw-r--r--src/io/buffer.nim4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/io/buffer.nim b/src/io/buffer.nim
index f85def2c..85b59620 100644
--- a/src/io/buffer.nim
+++ b/src/io/buffer.nim
@@ -1055,7 +1055,9 @@ proc drawBuffer*(buffer: Buffer) =
         print(line.str.substr(x, f.pos - 1))
         print(format.processFormat(f.format))
         x = f.pos
-      print(line.str.substr(x, line.str.len) & '\n')
+      print(line.str.substr(x, line.str.len))
+      print(format.processFormat(newFormat()))
+      print('\n')
 
 proc refreshBuffer*(buffer: Buffer) =
   buffer.title = buffer.getTitle()