Merge pull request #929 from zed-industries/non-uniform-batched-edits

Allow batched edits where each range is associated with different insertion text
This commit is contained in:
Keith Simmons
2022-04-29 16:14:38 -07:00
committed by GitHub
15 changed files with 539 additions and 487 deletions
+1 -1
View File
@@ -268,7 +268,7 @@ impl BufferSearchBar {
self.query_editor.update(cx, |query_editor, cx| {
query_editor.buffer().update(cx, |query_buffer, cx| {
let len = query_buffer.read(cx).len();
query_buffer.edit([0..len], query, cx);
query_buffer.edit([(0..len, query)], cx);
});
});
}