mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-06 20:04:18 +00:00
Fix style string formatting for cursorBackward and cursorForward (#7243)
This commit is contained in:
committed by
Andreas Rumpf
parent
45d3e2e510
commit
6f0bb6e1f5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user