diff options
author | bptato <nincsnevem662@gmail.com> | 2021-11-27 15:50:50 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2021-11-27 15:50:50 +0100 |
commit | 0f9c94abf5ff9e4f2ce4d8d49424c9458bbf6229 (patch) | |
tree | c995ebcd3d9de4e817a1b1a58c0db78a5ff20e62 /src/io | |
parent | 1a9984915cf4ade1d3ca281980ed1988f6375a4c (diff) | |
download | chawan-0f9c94abf5ff9e4f2ce4d8d49424c9458bbf6229.tar.gz |
Fix last line not being updated by SwapOutput
Diffstat (limited to 'src/io')
-rw-r--r-- | src/io/buffer.nim | 5 |
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 |