diff options
Diffstat (limited to '')
-rw-r--r-- | yt/src/watch/playlist.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/yt/src/watch/playlist.rs b/yt/src/watch/playlist.rs index 6ac8b12..5be46ce 100644 --- a/yt/src/watch/playlist.rs +++ b/yt/src/watch/playlist.rs @@ -38,7 +38,11 @@ fn erase_in_display_from_cursor() { print!("{CSI}0J"); } fn cursor_up(number: usize) { - print!("{CSI}{number}A"); + // HACK(@bpeetz): The default is `1` and running this command with a + // number of `0` results in it using the default (i.e., `1`) <2025-03-25> + if number != 0 { + print!("{CSI}{number}A"); + } } // }}} |