Revert YankEndOfLine default (part of PR #39143) (#39626)

Release Notes:

- N/A
This commit is contained in:
David Kleingeld
2025-10-06 17:06:35 +00:00
committed by GitHub
parent ea60a7b172
commit a65a8bea43
3 changed files with 2 additions and 14 deletions
+2 -2
View File
@@ -240,7 +240,7 @@
"delete": "vim::DeleteRight",
"g shift-j": "vim::JoinLinesNoWhitespace",
"y": "vim::PushYank",
"shift-y": "vim::YankToEndOfLine",
"shift-y": "vim::YankLine",
"x": "vim::DeleteRight",
"shift-x": "vim::DeleteLeft",
"ctrl-a": "vim::Increment",
@@ -393,7 +393,7 @@
"escape": "editor::Cancel",
"shift-d": "vim::DeleteToEndOfLine",
"shift-j": "vim::JoinLines",
"shift-y": "vim::YankToEndOfLine",
"shift-y": "vim::YankLine",
"shift-i": "vim::InsertFirstNonWhitespace",
"shift-a": "vim::InsertEndOfLine",
"o": "vim::InsertLineBelow",
-8
View File
@@ -2000,14 +2000,6 @@ mod test {
cx.shared_state().await.assert_eq("// hello\n// ˇ\n// x\n");
}
#[gpui::test]
async fn test_yank_to_end_of_line(cx: &mut gpui::TestAppContext) {
let mut cx = NeovimBackedTestContext::new(cx).await;
cx.set_shared_state("heˇllo\n").await;
cx.simulate_shared_keystrokes("Y p").await;
cx.shared_state().await.assert_eq("helllˇolo\n");
}
#[gpui::test]
async fn test_yank_line_with_trailing_newline(cx: &mut gpui::TestAppContext) {
let mut cx = NeovimBackedTestContext::new(cx).await;
@@ -1,4 +0,0 @@
{"Put":{"state":"heˇllo\n"}}
{"Key":"Y"}
{"Key":"p"}
{"Get":{"state":"helllˇolo\n","mode":"Normal"}}