@@ -872,9 +872,7 @@ impl EditorView {
872872
873873 let path = match doc.path() {
874874 Some(path) => path.clone(),
875− None => {
876− return EventResult::Ignored;
877− }
875+ None => return EventResult::Ignored(None),
878876 };
879877
880878 let line = coords.row + view.offset.row;
@@ -884,7 +882,7 @@ impl EditorView {
884882 }
885883 }
886884
887− EventResult::Ignored
885+ EventResult::Ignored(None)
888886 }
889887
890888 MouseEvent {
@@ -897,7 +895,7 @@ impl EditorView {
897895
898896 let pos = match view.pos_at_screen_coords(doc, row, column) {
899897 Some(pos) => pos,
900− None => return EventResult::Ignored,
898+ None => return EventResult::Ignored(None),
901899 };
902900
903901 let mut selection = doc.selection(view.id).clone();
@@ -928,7 +926,7 @@ impl EditorView {
928926
929927 match result {
930928 Some(view_id) => cxt.editor.tree.focus = view_id,
931− None => return EventResult::Ignored,
929+ None => return EventResult::Ignored(None),
932930 }
933931
934932 let offset = cxt.editor.config.scroll_lines.abs() as usize;
@@ -944,14 +942,14 @@ impl EditorView {
944942 ..
945943 } => {
946944 if !cxt.editor.config.middle_click_paste {
947− return EventResult::Ignored;
945+ return EventResult::Ignored(None);
948946 }
949947
950948 let (view, doc) = current!(cxt.editor);
951949 let range = doc.selection(view.id).primary();
952950
953951 if range.to() - range.from() <= 1 {
954− return EventResult::Ignored;
952+ return EventResult::Ignored(None);
955953 }
956954
957955 commands::MappableCommand::yank_main_selection_to_primary_clipboard.execute(cxt);
@@ -988,7 +986,7 @@ impl EditorView {
988986 return EventResult::Consumed(None);
989987 }
990988 }
991− EventResult::Ignored
989+ EventResult::Ignored(None)
992990 }
993991
994992 MouseEvent {
@@ -1000,7 +998,7 @@ impl EditorView {
1000998 } => {
1001999 let editor = &mut cxt.editor;
10021000 if !editor.config.middle_click_paste {
1003− return EventResult::Ignored;
1001+ return EventResult::Ignored(None);
10041002 }
10051003
10061004 if modifiers == crossterm::event::KeyModifiers::ALT {
@@ -1023,10 +1021,10 @@ impl EditorView {
10231021 return EventResult::Consumed(None);
10241022 }
10251023
1026− EventResult::Ignored
1024+ EventResult::Ignored(None)
10271025 }
10281026
1029− _ => EventResult::Ignored,
1027+ _ => EventResult::Ignored(None),
10301028 }
10311029 }
10321030}
@@ -1117,7 +1115,7 @@ impl Component for EditorView {
11171115 // if the command consumed the last view, skip the render.
11181116 // on the next loop cycle the Application will then terminate.
11191117 if cx.editor.should_close() {
1120− return EventResult::Ignored;
1118+ return EventResult::Ignored(None);
11211119 }
11221120
11231121 let (view, doc) = current!(cx.editor);