move translate_offset_with_edit to ra_editor

This commit is contained in:
Bernardo 2018-12-18 18:46:54 +01:00
parent 881c29192d
commit 8c9df62c1c
7 changed files with 268 additions and 311 deletions

View file

@ -1,4 +1,4 @@
use crate::{TextUnit, TextRange};
use crate::TextUnit;
use rustc_hash::FxHashMap;
use superslice::Ext;
@ -121,7 +121,7 @@ impl LineIndex {
col
}
pub fn newlines(&self) -> &[TextUnit] {
pub(crate) fn newlines(&self) -> &[TextUnit] {
&self.newlines[1..]
}
}