From 6ba082697d4a930d4114e950a212f115bace47e9 Mon Sep 17 00:00:00 2001 From: Jan Hrastnik Date: Wed, 24 Jun 2020 20:59:35 +0200 Subject: added cursor rendering --- helix-core/src/lib.rs | 2 +- helix-core/src/state.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'helix-core/src') diff --git a/helix-core/src/lib.rs b/helix-core/src/lib.rs index 74900c01..f9e987a6 100644 --- a/helix-core/src/lib.rs +++ b/helix-core/src/lib.rs @@ -3,7 +3,7 @@ mod buffer; pub mod commands; mod graphemes; mod selection; -mod state; +pub mod state; mod transaction; pub use ropey::{Rope, RopeSlice}; diff --git a/helix-core/src/state.rs b/helix-core/src/state.rs index 429a4dd4..2458f9b1 100644 --- a/helix-core/src/state.rs +++ b/helix-core/src/state.rs @@ -3,8 +3,8 @@ use crate::{Buffer, Rope, RopeSlice, Selection, SelectionRange}; /// A state represents the current editor state of a single buffer. pub struct State { - pub(crate) doc: Buffer, - pub(crate) selection: Selection, + pub doc: Buffer, + pub selection: Selection, } #[derive(Copy, Clone, PartialEq, Eq)] -- cgit v1.2.3-70-g09d2