@@ -54,7 +54,7 @@ use crate::{
54 job::Callback,
54 job::Callback,
55 keymap::ReverseKeymap,
55 keymap::ReverseKeymap,
57− self, editor::InsertEvent, lsp::SignatureHelp, overlay::overlayed, FilePicker, Picker,
57+ self, editor::InsertEvent, lsp::SignatureHelp, overlay::overlaid, FilePicker, Picker,
58 Popup, Prompt, PromptEvent,
58 Popup, Prompt, PromptEvent,
@@ -1561,7 +1561,7 @@ fn half_page_down(cx: &mut Context) {
1563#[allow(deprecated)]
1563#[allow(deprecated)]
1564−// currently uses the deprected `visual_coords_at_pos`/`pos_at_visual_coords` functions
1564+// currently uses the deprecated `visual_coords_at_pos`/`pos_at_visual_coords` functions
1565// as this function ignores softwrapping (and virtual text) and instead only cares
1565// as this function ignores softwrapping (and virtual text) and instead only cares
1566// about "text visual position"
1566// about "text visual position"
@@ -2147,7 +2147,7 @@ fn global_search(cx: &mut Context) {
2147 Some((path.clone().into(), Some((*line_num, *line_num))))
2147 Some((path.clone().into(), Some((*line_num, *line_num))))
2150− compositor.push(Box::new(overlayed(picker)));
2150+ compositor.push(Box::new(overlaid(picker)));
2153 Ok(call)
2153 Ok(call)
@@ -2421,7 +2421,7 @@ fn append_mode(cx: &mut Context) {
2421fn file_picker(cx: &mut Context) {
2421fn file_picker(cx: &mut Context) {
2422 let root = find_workspace().0;
2422 let root = find_workspace().0;
2423 let picker = ui::file_picker(root, &cx.editor.config());
2423 let picker = ui::file_picker(root, &cx.editor.config());
2424− cx.push_layer(Box::new(overlayed(picker)));
2424+ cx.push_layer(Box::new(overlaid(picker)));
2427fn file_picker_in_current_buffer_directory(cx: &mut Context) {
2427fn file_picker_in_current_buffer_directory(cx: &mut Context) {
@@ -2438,12 +2438,12 @@ fn file_picker_in_current_buffer_directory(cx: &mut Context) {
2440 let picker = ui::file_picker(path, &cx.editor.config());
2440 let picker = ui::file_picker(path, &cx.editor.config());
2441− cx.push_layer(Box::new(overlayed(picker)));
2441+ cx.push_layer(Box::new(overlaid(picker)));
2443fn file_picker_in_current_directory(cx: &mut Context) {
2443fn file_picker_in_current_directory(cx: &mut Context) {
2444 let cwd = std::env::current_dir().unwrap_or_else(|_| PathBuf::from("./"));
2444 let cwd = std::env::current_dir().unwrap_or_else(|_| PathBuf::from("./"));
2445 let picker = ui::file_picker(cwd, &cx.editor.config());
2445 let picker = ui::file_picker(cwd, &cx.editor.config());
2446− cx.push_layer(Box::new(overlayed(picker)));
2446+ cx.push_layer(Box::new(overlaid(picker)));
2449fn buffer_picker(cx: &mut Context) {
2449fn buffer_picker(cx: &mut Context) {
@@ -2508,7 +2508,7 @@ fn buffer_picker(cx: &mut Context) {
2508 Some((meta.id.into(), Some((line, line))))
2508 Some((meta.id.into(), Some((line, line))))
2511− cx.push_layer(Box::new(overlayed(picker)));
2511+ cx.push_layer(Box::new(overlaid(picker)));
2514fn jumplist_picker(cx: &mut Context) {
2514fn jumplist_picker(cx: &mut Context) {
@@ -2590,7 +2590,7 @@ fn jumplist_picker(cx: &mut Context) {
2590 Some((meta.path.clone()?.into(), Some((line, line))))
2590 Some((meta.path.clone()?.into(), Some((line, line))))
2593− cx.push_layer(Box::new(overlayed(picker)));
2593+ cx.push_layer(Box::new(overlaid(picker)));
2596impl ui::menu::Item for MappableCommand {
2596impl ui::menu::Item for MappableCommand {
@@ -2664,7 +2664,7 @@ pub fn command_palette(cx: &mut Context) {
2667− compositor.push(Box::new(overlayed(picker)));
2667+ compositor.push(Box::new(overlaid(picker)));
@@ -4185,7 +4185,7 @@ pub fn completion(cx: &mut Context) {
4185 None => return,
4185 None => return,
4188− // setup a chanel that allows the request to be canceled
4188+ // setup a channel that allows the request to be canceled
4189 let (tx, rx) = oneshot::channel();
4189 let (tx, rx) = oneshot::channel();
4190 // set completion_request so that this request can be canceled
4190 // set completion_request so that this request can be canceled
4191 // by setting completion_request, the old channel stored there is dropped
4191 // by setting completion_request, the old channel stored there is dropped
@@ -4238,7 +4238,7 @@ pub fn completion(cx: &mut Context) {
4238 let (view, doc) = current_ref!(editor);
4238 let (view, doc) = current_ref!(editor);
4239 // check if the completion request is stale.
4239 // check if the completion request is stale.
4241− // Completions are completed asynchrounsly and therefore the user could
4241+ // Completions are completed asynchronously and therefore the user could
4242 //switch document/view or leave insert mode. In all of thoise cases the
4242 //switch document/view or leave insert mode. In all of thoise cases the
4243 // completion should be discarded
4243 // completion should be discarded
4244 if editor.mode != Mode::Insert || view.id != trigger_view || doc.id() != trigger_doc {
4244 if editor.mode != Mode::Insert || view.id != trigger_view || doc.id() != trigger_doc {