From 623d574b513c48841b5fb54055aefa4ac96ccfe1 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Mon, 26 Jul 2021 12:11:22 +0200 Subject: [PATCH] Fix mistakenly moved line in beginning/end of line editor tests --- zed/src/editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zed/src/editor.rs b/zed/src/editor.rs index dbdf646802..3eabb62edb 100644 --- a/zed/src/editor.rs +++ b/zed/src/editor.rs @@ -3104,6 +3104,7 @@ mod tests { }); view.update(cx, |view, cx| { + view.delete_to_beginning_of_line(&(), cx); assert_eq!(view.text(cx), "\n"); assert_eq!( view.selection_ranges(cx), @@ -3112,7 +3113,6 @@ mod tests { DisplayPoint::new(1, 0)..DisplayPoint::new(1, 0), ] ); - view.delete_to_beginning_of_line(&(), cx) }); }