diff --git a/helix-core/src/state.rs b/helix-core/src/state.rs index f74de9a94..047ff83dd 100644 --- a/helix-core/src/state.rs +++ b/helix-core/src/state.rs @@ -288,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); diff --git a/helix-core/src/syntax.rs b/helix-core/src/syntax.rs index 638ec8eea..3e5927e5a 100644 --- a/helix-core/src/syntax.rs +++ b/helix-core/src/syntax.rs @@ -312,7 +312,7 @@ pub struct LanguageLayer { tree: Option, } -use crate::state::{coords_at_pos, Coords}; +use crate::state::coords_at_pos; use crate::transaction::{ChangeSet, Operation}; use crate::Tendril;