Fix bugs in code folding
This commit is contained in:
parent
e3061066c9
commit
637e8ada42
7 changed files with 82 additions and 27 deletions
|
@ -447,6 +447,7 @@ fn test_clone(cx: &mut gpui::MutableAppContext) {
|
|||
Point::new(1, 0)..Point::new(2, 0),
|
||||
Point::new(3, 0)..Point::new(4, 0),
|
||||
],
|
||||
true,
|
||||
cx,
|
||||
);
|
||||
});
|
||||
|
@ -807,6 +808,7 @@ fn test_move_cursor_multibyte(cx: &mut gpui::MutableAppContext) {
|
|||
Point::new(1, 2)..Point::new(1, 4),
|
||||
Point::new(2, 4)..Point::new(2, 8),
|
||||
],
|
||||
true,
|
||||
cx,
|
||||
);
|
||||
assert_eq!(view.display_text(cx), "ⓐⓑ…ⓔ\nab…e\nαβ…ε\n");
|
||||
|
@ -2119,6 +2121,7 @@ fn test_move_line_up_down(cx: &mut gpui::MutableAppContext) {
|
|||
Point::new(2, 3)..Point::new(4, 1),
|
||||
Point::new(7, 0)..Point::new(8, 4),
|
||||
],
|
||||
true,
|
||||
cx,
|
||||
);
|
||||
view.change_selections(None, cx, |s| {
|
||||
|
@ -2586,6 +2589,7 @@ fn test_split_selection_into_lines(cx: &mut gpui::MutableAppContext) {
|
|||
Point::new(2, 3)..Point::new(4, 1),
|
||||
Point::new(7, 0)..Point::new(8, 4),
|
||||
],
|
||||
true,
|
||||
cx,
|
||||
);
|
||||
view.change_selections(None, cx, |s| {
|
||||
|
@ -2983,6 +2987,7 @@ async fn test_select_larger_smaller_syntax_node(cx: &mut gpui::TestAppContext) {
|
|||
Point::new(0, 21)..Point::new(0, 24),
|
||||
Point::new(3, 20)..Point::new(3, 22),
|
||||
],
|
||||
true,
|
||||
cx,
|
||||
);
|
||||
view.select_larger_syntax_node(&SelectLargerSyntaxNode, cx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue