about summary refs log tree commit diff stats
path: root/src/io
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2021-11-27 15:50:50 +0100
committerbptato <nincsnevem662@gmail.com>2021-11-27 15:50:50 +0100
commit0f9c94abf5ff9e4f2ce4d8d49424c9458bbf6229 (patch)
treec995ebcd3d9de4e817a1b1a58c0db78a5ff20e62 /src/io
parent1a9984915cf4ade1d3ca281980ed1988f6375a4c (diff)
downloadchawan-0f9c94abf5ff9e4f2ce4d8d49424c9458bbf6229.tar.gz
Fix last line not being updated by SwapOutput
Diffstat (limited to 'src/io')
-rw-r--r--src/io/buffer.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/io/buffer.nim b/src/io/buffer.nim
index 13a599c5..36700e12 100644
--- a/src/io/buffer.nim
+++ b/src/io/buffer.nim
@@ -104,6 +104,11 @@ func generateSwapOutput*(buffer: Buffer): string =
     line &= $curr[i].runes
     inc i
     inc x
+  if lr:
+    result &= HVP(y + 1, 1)
+    result &= EL()
+    result &= line
+    lr = false
   
   #TODO maybe fix this
   #var x = 0