Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
vim: Don’t allow edits in the read-only state (#10404)
Hans32806b832015
diff --git a/crates/multi_buffer/src/multi_buffer.rs b/crates/multi_buffer/src/multi_buffer.rsindex 9ceef63c182..365f8d1e1b7 100644--- a/crates/multi_buffer/src/multi_buffer.rs+++ b/crates/multi_buffer/src/multi_buffer.rs@@ -418,6 +418,9 @@ impl MultiBuffer {S: ToOffset,T: Into<Arc<str>>,{+ if self.read_only() {+ return;+ }if self.buffers.borrow().is_empty() {return;}