sivtr_core/buffer/cursor.rs
1/// Cursor position in the buffer, using display columns.
2#[derive(Debug, Clone, Copy, Default, PartialEq, Eq)]
3pub struct Cursor {
4 /// Row index (0-based line number).
5 pub row: usize,
6 /// Column index (0-based display column).
7 pub col: usize,
8}
9
10impl Cursor {
11 pub fn new(row: usize, col: usize) -> Self {
12 Self { row, col }
13 }
14}