lib: Remove cursor offset

This commit is contained in:
Erik Kundt
2024-04-02 16:09:37 +02:00
parent 5b2e2eb89d
commit f657892da5
+1 -1
View File
@@ -57,7 +57,7 @@ impl<W: Write> ratatui::backend::Backend for TermionBackendExt<W> {
fn get_cursor(&mut self) -> io::Result<(u16, u16)> {
match self.inner.get_cursor() {
Ok((x, y)) => {
let cursor = (x.saturating_sub(1), y.saturating_sub(1));
let cursor = (x.saturating_sub(0), y.saturating_sub(0));
self.cursor = Some(cursor);
Ok(cursor)
}