also ask for cursor position on benchmark data completion to ensure terminal has updated its state

This commit is contained in:
Kovid Goyal 2026-08-29 03:02:56 +05:30
parent 302399681c
commit fb99338101
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -89,7 +89,7 @@ func benchmark_data(description string, data string, opts Options) (duration tim
if !opts.Render {
finalize += resume_rendering
}
finalize += strings.Repeat("\x1b[5n", count)
finalize += "\x1b[6n" + strings.Repeat("\x1b[5n", count)
if err = write_with_retry(finalize); err != nil {
return
}