Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix an interaction between vim's linewise yank and editor's paste (#33555)

Alejandro Fernández Gómezb0086b472f69
diff --git a/crates/vim/src/normal/yank.rs b/crates/vim/src/normal/yank.rs
index f8cc3ca7dd7..847eba3143e 100644
--- a/crates/vim/src/normal/yank.rs
+++ b/crates/vim/src/normal/yank.rs
@@ -196,7 +196,7 @@ impl Vim {
}
clipboard_selections.push(ClipboardSelection {
len: text.len() - initial_len,
- is_entire_line: kind.linewise(),
+ is_entire_line: false,
first_line_indent: buffer.indent_size_for_line(MultiBufferRow(start.row)).len,
});
}