Fix style string formatting for cursorBackward and cursorForward (#7243)

This commit is contained in:
antizealot1337
2018-02-22 04:01:26 -05:00
committed by Andreas Rumpf
parent 45d3e2e510
commit 6f0bb6e1f5

View File

@@ -372,7 +372,7 @@ proc cursorForward*(f: File, count=1) =
inc(p.x, count)
setCursorPos(h, p.x, p.y)
else:
f.write("{stylePrefix}{count}C")
f.write(fmt"{stylePrefix}{count}C")
proc cursorBackward*(f: File, count=1) =
## Moves the cursor backward by `count` columns.
@@ -382,7 +382,7 @@ proc cursorBackward*(f: File, count=1) =
dec(p.x, count)
setCursorPos(h, p.x, p.y)
else:
f.write("{stylePrefix}{count}D")
f.write(fmt"{stylePrefix}{count}D")
when true:
discard