@@ -872,9 +872,7 @@ impl EditorView {
873 let path = match doc.path() {
873 let path = match doc.path() {
874 Some(path) => path.clone(),
874 Some(path) => path.clone(),
876− return EventResult::Ignored;
875+ None => return EventResult::Ignored(None),
880 let line = coords.row + view.offset.row;
878 let line = coords.row + view.offset.row;
@@ -884,7 +882,7 @@ impl EditorView {
887− EventResult::Ignored
885+ EventResult::Ignored(None)
890 MouseEvent {
888 MouseEvent {
@@ -897,7 +895,7 @@ impl EditorView {
898 let pos = match view.pos_at_screen_coords(doc, row, column) {
896 let pos = match view.pos_at_screen_coords(doc, row, column) {
899 Some(pos) => pos,
897 Some(pos) => pos,
900− None => return EventResult::Ignored,
898+ None => return EventResult::Ignored(None),
903 let mut selection = doc.selection(view.id).clone();
901 let mut selection = doc.selection(view.id).clone();
@@ -928,7 +926,7 @@ impl EditorView {
929 match result {
927 match result {
930 Some(view_id) => cxt.editor.tree.focus = view_id,
928 Some(view_id) => cxt.editor.tree.focus = view_id,
931− None => return EventResult::Ignored,
929+ None => return EventResult::Ignored(None),
934 let offset = cxt.editor.config.scroll_lines.abs() as usize;
932 let offset = cxt.editor.config.scroll_lines.abs() as usize;
@@ -944,14 +942,14 @@ impl EditorView {
946 if !cxt.editor.config.middle_click_paste {
944 if !cxt.editor.config.middle_click_paste {
947− return EventResult::Ignored;
945+ return EventResult::Ignored(None);
950 let (view, doc) = current!(cxt.editor);
948 let (view, doc) = current!(cxt.editor);
951 let range = doc.selection(view.id).primary();
949 let range = doc.selection(view.id).primary();
953 if range.to() - range.from() <= 1 {
951 if range.to() - range.from() <= 1 {
954− return EventResult::Ignored;
952+ return EventResult::Ignored(None);
957 commands::MappableCommand::yank_main_selection_to_primary_clipboard.execute(cxt);
955 commands::MappableCommand::yank_main_selection_to_primary_clipboard.execute(cxt);
@@ -988,7 +986,7 @@ impl EditorView {
988 return EventResult::Consumed(None);
986 return EventResult::Consumed(None);
991− EventResult::Ignored
989+ EventResult::Ignored(None)
994 MouseEvent {
992 MouseEvent {
@@ -1000,7 +998,7 @@ impl EditorView {
1001 let editor = &mut cxt.editor;
999 let editor = &mut cxt.editor;
1002 if !editor.config.middle_click_paste {
1000 if !editor.config.middle_click_paste {
1003− return EventResult::Ignored;
1001+ return EventResult::Ignored(None);
1006 if modifiers == crossterm::event::KeyModifiers::ALT {
1004 if modifiers == crossterm::event::KeyModifiers::ALT {
@@ -1023,10 +1021,10 @@ impl EditorView {
1023 return EventResult::Consumed(None);
1021 return EventResult::Consumed(None);
1026− EventResult::Ignored
1024+ EventResult::Ignored(None)
1029− _ => EventResult::Ignored,
1027+ _ => EventResult::Ignored(None),
@@ -1117,7 +1115,7 @@ impl Component for EditorView {
1117 // if the command consumed the last view, skip the render.
1115 // if the command consumed the last view, skip the render.
1118 // on the next loop cycle the Application will then terminate.
1116 // on the next loop cycle the Application will then terminate.
1119 if cx.editor.should_close() {
1117 if cx.editor.should_close() {
1120− return EventResult::Ignored;
1118+ return EventResult::Ignored(None);
1123 let (view, doc) = current!(cx.editor);
1121 let (view, doc) = current!(cx.editor);