vim: Fix readonly mode (#20264)
Closes #18854 Release Notes: - vim: Fixed `r`, `~` etc. appearing to modify readonly buffers
This commit is contained in:
@@ -530,9 +530,7 @@ impl Vim {
|
||||
}
|
||||
}
|
||||
|
||||
editor.buffer().update(cx, |buffer, cx| {
|
||||
buffer.edit(edits, None, cx);
|
||||
});
|
||||
editor.edit(edits, cx);
|
||||
editor.change_selections(None, cx, |s| s.select_ranges(stable_anchors));
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user