Fix style string formatting for cursorBackward and cursorForward (#7243)
This commit is contained in:
parent
45d3e2e510
commit
6f0bb6e1f5
1 changed files with 2 additions and 2 deletions
|
|
@ -372,7 +372,7 @@ proc cursorForward*(f: File, count=1) =
|
||||||
inc(p.x, count)
|
inc(p.x, count)
|
||||||
setCursorPos(h, p.x, p.y)
|
setCursorPos(h, p.x, p.y)
|
||||||
else:
|
else:
|
||||||
f.write("{stylePrefix}{count}C")
|
f.write(fmt"{stylePrefix}{count}C")
|
||||||
|
|
||||||
proc cursorBackward*(f: File, count=1) =
|
proc cursorBackward*(f: File, count=1) =
|
||||||
## Moves the cursor backward by `count` columns.
|
## Moves the cursor backward by `count` columns.
|
||||||
|
|
@ -382,7 +382,7 @@ proc cursorBackward*(f: File, count=1) =
|
||||||
dec(p.x, count)
|
dec(p.x, count)
|
||||||
setCursorPos(h, p.x, p.y)
|
setCursorPos(h, p.x, p.y)
|
||||||
else:
|
else:
|
||||||
f.write("{stylePrefix}{count}D")
|
f.write(fmt"{stylePrefix}{count}D")
|
||||||
|
|
||||||
when true:
|
when true:
|
||||||
discard
|
discard
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue