Passing tests and removed local argument. Also pulled autoscroll argument out to change_selections
This commit is contained in:
parent
c9dcfff607
commit
db0a9114c2
19 changed files with 351 additions and 397 deletions
|
@ -43,7 +43,7 @@ pub fn marked_display_snapshot(
|
|||
pub fn select_ranges(editor: &mut Editor, marked_text: &str, cx: &mut ViewContext<Editor>) {
|
||||
let (umarked_text, text_ranges) = marked_text_ranges(marked_text);
|
||||
assert_eq!(editor.text(cx), umarked_text);
|
||||
editor.change_selections(true, cx, |s| s.select_ranges(text_ranges, None));
|
||||
editor.change_selections(None, cx, |s| s.select_ranges(text_ranges));
|
||||
}
|
||||
|
||||
pub fn assert_text_with_selections(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue