Move multi_buffer to editor crate
This commit is contained in:
parent
6caf016df9
commit
c8b43e3078
16 changed files with 44 additions and 47 deletions
|
@ -1,6 +1,6 @@
|
|||
use super::{Bias, DisplayPoint, DisplaySnapshot, SelectionGoal, ToDisplayPoint};
|
||||
use crate::ToPoint;
|
||||
use anyhow::Result;
|
||||
use language::multi_buffer::ToPoint;
|
||||
use std::{cmp, ops::Range};
|
||||
|
||||
pub fn left(map: &DisplaySnapshot, mut point: DisplayPoint) -> Result<DisplayPoint> {
|
||||
|
@ -244,8 +244,7 @@ fn char_kind(c: char) -> CharKind {
|
|||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::display_map::DisplayMap;
|
||||
use language::MultiBuffer;
|
||||
use crate::{DisplayMap, MultiBuffer};
|
||||
|
||||
#[gpui::test]
|
||||
fn test_prev_next_word_boundary_multibyte(cx: &mut gpui::MutableAppContext) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue