We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 257e53b commit 1adce33Copy full SHA for 1adce33
1 file changed
src/basic/gitprogresspool.nim
@@ -252,11 +252,11 @@ proc renderProgressBlock(
252
proc clearInteractiveBlock(lastLines: var int) =
253
if lastLines <= 0:
254
return
255
- for _ in 0..<lastLines:
+ let lineCount = lastLines
256
+ for idx in 0..<lineCount:
257
stdout.write "\r\27[2K"
- if lastLines > 1:
258
+ if idx < lineCount - 1:
259
stdout.write "\27[1A"
- dec lastLines
260
stdout.write "\r\27[2K\r"
261
stdout.flushFile()
262
lastLines = 0
0 commit comments