diff options
Diffstat (limited to 'helix-core/src/state.rs')
-rw-r--r-- | helix-core/src/state.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/helix-core/src/state.rs b/helix-core/src/state.rs index 36ca221c..047ff83d 100644 --- a/helix-core/src/state.rs +++ b/helix-core/src/state.rs @@ -9,6 +9,7 @@ use std::path::PathBuf; pub enum Mode { Normal, Insert, + Goto, } /// A state represents the current editor state of a single buffer. @@ -287,9 +288,6 @@ impl State { } } -/// Coordinates are a 0-indexed line and column pair. -pub type Coords = (usize, usize); // line, col - /// Convert a character index to (line, column) coordinates. pub fn coords_at_pos(text: &RopeSlice, pos: usize) -> Position { let line = text.char_to_line(pos); |