Rename editor::Event::Edited
to editor::Event::BufferEdited
This is to distinguish it from a new event we're about to add which represent edits originating from that specific editor.
This commit is contained in:
parent
864bede8a2
commit
a739c362d9
11 changed files with 26 additions and 38 deletions
|
@ -291,7 +291,7 @@ impl FileFinder {
|
|||
cx: &mut ViewContext<Self>,
|
||||
) {
|
||||
match event {
|
||||
editor::Event::Edited { .. } => {
|
||||
editor::Event::BufferEdited { .. } => {
|
||||
let query = self.query_editor.update(cx, |buffer, cx| buffer.text(cx));
|
||||
if query.is_empty() {
|
||||
self.latest_search_id = post_inc(&mut self.search_count);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue