pointbreak 0.5.0

Durable terminal code review for changes humans and coding agents collaborate on together
Documentation
use serde::{Deserialize, Serialize};

use super::RowId;

#[derive(Clone, Debug, Eq, PartialEq, Serialize, Deserialize)]
pub struct CursorState {
    pub row_id: Option<RowId>,
}

impl CursorState {
    pub fn empty() -> Self {
        Self { row_id: None }
    }

    pub fn at_row(row_id: RowId) -> Self {
        Self {
            row_id: Some(row_id),
        }
    }
}