aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-12-05 19:54:03 -0500
committerJesse Luehrs <doy@tozt.net>2021-12-05 19:54:03 -0500
commit652da944c680e53a6c35757ad6bc2612fd45e264 (patch)
treef762cea17d7a207cc73bf18ae0ea77929620a9ba
parentf6d8f7d72bb8bd54350f74b75ea0b8d2ecd55ccd (diff)
downloadttyrec-bin-652da944c680e53a6c35757ad6bc2612fd45e264.tar.gz
ttyrec-bin-652da944c680e53a6c35757ad6bc2612fd45e264.zip
fix cursor position
-rw-r--r--src/bin/ttyplay/display.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bin/ttyplay/display.rs b/src/bin/ttyplay/display.rs
index 082148a..906836f 100644
--- a/src/bin/ttyplay/display.rs
+++ b/src/bin/ttyplay/display.rs
@@ -71,9 +71,8 @@ impl Display {
&self,
output: &mut textmode::Output,
) -> anyhow::Result<()> {
- let pos = output.screen().cursor_position();
-
self.render_screen(output);
+ let pos = output.screen().cursor_position();
if self.paused && self.show_ui {
self.render_frame_count(output);