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
|
@ -102,7 +102,7 @@ impl GoToLine {
|
|||
) {
|
||||
match event {
|
||||
editor::Event::Blurred => cx.emit(Event::Dismissed),
|
||||
editor::Event::Edited { .. } => {
|
||||
editor::Event::BufferEdited { .. } => {
|
||||
let line_editor = self.line_editor.read(cx).buffer().read(cx).read(cx).text();
|
||||
let mut components = line_editor.trim().split(&[',', ':'][..]);
|
||||
let row = components.next().and_then(|row| row.parse::<u32>().ok());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue