Added Position type for cursor

This commit is contained in:
2023-08-13 13:17:09 +02:00
parent 53870fecce
commit b4a86dca9f
2 changed files with 3 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
use crate::{layout::*, pager::Pager};
use crate::{cursor::Position, layout::*, pager::Pager};
pub struct Table {
pub row_count: usize,
@@ -11,7 +11,7 @@ impl Table {
Self { row_count, pager }
}
pub fn row_slot(&self, index: usize) -> (usize, usize) {
pub fn row_slot(&self, index: usize) -> Position {
self.pager.row_location(index)
}