Add test for pending selection influence on go-to links

Co-authored-by: Max Brunsfeld <max@zed.dev>
This commit is contained in:
ForLoveOfCats 2022-08-18 18:33:37 -04:00
parent b8b951deab
commit 8583320e9b
2 changed files with 55 additions and 1 deletions

View file

@ -183,7 +183,7 @@ impl<'a> EditorTestContext<'a> {
}
}
fn ranges(&self, marked_text: &str) -> Vec<Range<usize>> {
pub fn ranges(&self, marked_text: &str) -> Vec<Range<usize>> {
let (unmarked_text, ranges) = marked_text_ranges(marked_text, false);
assert_eq!(self.buffer_text(), unmarked_text);
ranges