on master help sign in
Fix typos (#6643)
commite856906f766aa6d58aba6f6bca9e2e1879b1629d authorDaniel Sedlak <daniel@sedlak.dev> dateFri 7 Apr 2023, 17:10 (4 years ago) parent1148ce1
21 files changed+70−70
helix-core/src/position.rs+2−2 helix-core/src/selection.rs+1−1 helix-core/src/shellwords.rs+2−2 helix-core/src/text_annotations.rs+2−2 helix-lsp/src/client.rs+7−7 helix-lsp/src/lib.rs+3−3 helix-lsp/src/snippet.rs+6−6 helix-term/src/application.rs+2−2 helix-term/src/commands.rs+11−11 helix-term/src/commands/dap.rs+2−2 helix-term/src/commands/lsp.rs+13−13 helix-term/src/commands/typed.rs+2−2 helix-term/src/ui/document.rs+4−4 helix-term/src/ui/fuzzy_match.rs+3−3 helix-term/src/ui/fuzzy_match/test.rs+2−2 helix-term/src/ui/overlay.rs+1−1 helix-term/src/ui/picker.rs+1−1 helix-term/tests/test/movement.rs+1−1 helix-tui/src/backend/crossterm.rs+3−3 helix-view/src/editor.rs+1−1 helix-view/src/theme.rs+1−1
helix-core/src/position.rs+2−2
@@ -109,7 +109,7 @@ pub fn visual_coords_at_pos(text: RopeSlice, pos: usize, tab_width: usize) -> Po
109109/// softwrapping positions are estimated with an O(1) algorithm
110110/// to ensure consistent performance for large lines (currently unimplemented)
111111///
112−/// Usualy you want to use `visual_offset_from_anchor` instead but this function
112+/// Usually you want to use `visual_offset_from_anchor` instead but this function
113113/// can be useful (and faster) if
114114/// * You already know the visual position of the block
115115/// * You only care about the horizontal offset (column) and not the vertical offset (row)
@@ -291,7 +291,7 @@ pub fn pos_at_visual_coords(text: RopeSlice, coords: Position, tab_width: usize)
291291///
292292/// If no (text) grapheme starts at exactly at the specified column the
293293/// start of the grapheme to the left is returned. If there is no grapheme
294−/// to the left (for example if the line starts with virtual text) then the positiong
294+/// to the left (for example if the line starts with virtual text) then the positioning
295295/// of the next grapheme to the right is returned.
296296///
297297/// If the `line` coordinate is beyond the end of the file, the EOF
helix-core/src/selection.rs+1−1
@@ -38,7 +38,7 @@ use std::borrow::Cow;
3838/// Ranges are considered to be inclusive on the left and
3939/// exclusive on the right, regardless of anchor-head ordering.
4040/// This means, for example, that non-zero-width ranges that
41−/// are directly adjecent, sharing an edge, do not overlap.
41+/// are directly adjacent, sharing an edge, do not overlap.
4242/// However, a zero-width range will overlap with the shared
4343/// left-edge of another range.
4444///
helix-core/src/shellwords.rs+2−2
@@ -294,14 +294,14 @@ mod test {
294294 #[test]
295295 fn test_lists() {
296296 let input =
297− r#":set statusline.center ["file-type","file-encoding"] '["list", "in", "qoutes"]'"#;
297+ r#":set statusline.center ["file-type","file-encoding"] '["list", "in", "quotes"]'"#;
298298 let shellwords = Shellwords::from(input);
299299 let result = shellwords.words().to_vec();
300300 let expected = vec![
301301 Cow::from(":set"),
302302 Cow::from("statusline.center"),
303303 Cow::from(r#"["file-type","file-encoding"]"#),
304− Cow::from(r#"["list", "in", "qoutes"]"#),
304+ Cow::from(r#"["list", "in", "quotes"]"#),
305305 ];
306306 assert_eq!(expected, result);
307307 }
helix-core/src/text_annotations.rs+2−2
@@ -172,7 +172,7 @@ impl TextAnnotations {
172172 for char_idx in char_range {
173173 if let Some((_, Some(highlight))) = self.overlay_at(char_idx) {
174174 // we don't know the number of chars the original grapheme takes
175− // however it doesn't matter as highlight bounderies are automatically
175+ // however it doesn't matter as highlight boundaries are automatically
176176 // aligned to grapheme boundaries in the rendering code
177177 highlights.push((highlight.0, char_idx..char_idx + 1))
178178 }
@@ -203,7 +203,7 @@ impl TextAnnotations {
203203
204204 /// Add new grapheme overlays.
205205 ///
206− /// The overlayed grapheme will be rendered with `highlight`
206+ /// The overlaid grapheme will be rendered with `highlight`
207207 /// patched on top of `ui.text`.
208208 ///
209209 /// The overlays **must be sorted** by their `char_idx`.
helix-lsp/src/client.rs+7−7
@@ -52,8 +52,8 @@ pub struct Client {
5252 root_path: std::path::PathBuf,
5353 root_uri: Option<lsp::Url>,
5454 workspace_folders: Mutex<Vec<lsp::WorkspaceFolder>>,
55− initalize_notify: Arc<Notify>,
56− /// workspace folders added while the server is still initalizing
55+ initialize_notify: Arc<Notify>,
56+ /// workspace folders added while the server is still initializing
5757 req_timeout: u64,
5858}
5959
@@ -92,14 +92,14 @@ impl Client {
9292 return true;
9393 }
9494
95− // this server definitly doesn't support multiple workspace, no need to check capabilities
95+ // this server definitely doesn't support multiple workspace, no need to check capabilities
9696 if !may_support_workspace {
9797 return false;
9898 }
9999
100100 let Some(capabilities) = self.capabilities.get() else {
101101 let client = Arc::clone(self);
102− // initalization hasn't finished yet, deal with this new root later
102+ // initialization hasn't finished yet, deal with this new root later
103103 // TODO: In the edgecase that a **new root** is added
104104 // for an LSP that **doesn't support workspace_folders** before initaliation is finished
105105 // the new roots are ignored.
@@ -108,7 +108,7 @@ impl Client {
108108 // documents LSP client handle. It's doable but a pretty weird edgecase so let's
109109 // wait and see if anyone ever runs into it.
110110 tokio::spawn(async move {
111− client.initalize_notify.notified().await;
111+ client.initialize_notify.notified().await;
112112 if let Some(workspace_folders_caps) = client
113113 .capabilities()
114114 .workspace
@@ -234,7 +234,7 @@ impl Client {
234234 root_path,
235235 root_uri,
236236 workspace_folders: Mutex::new(workspace_folders),
237− initalize_notify: initialize_notify.clone(),
237+ initialize_notify: initialize_notify.clone(),
238238 };
239239
240240 Ok((client, server_rx, initialize_notify))
@@ -279,7 +279,7 @@ impl Client {
279279 "utf-16" => Some(OffsetEncoding::Utf16),
280280 "utf-32" => Some(OffsetEncoding::Utf32),
281281 encoding => {
282− log::error!("Server provided invalid position encording {encoding}, defaulting to utf-16");
282+ log::error!("Server provided invalid position encoding {encoding}, defaulting to utf-16");
283283 None
284284 },
285285 })
helix-lsp/src/lib.rs+3−3
@@ -152,10 +152,10 @@ pub mod util {
152152 // > ‘\n’, ‘\r\n’ and ‘\r’. Positions are line end character agnostic.
153153 // > So you can not specify a position that denotes \r|\n or \n| where | represents the character offset.
154154 //
155− // This means that while the line must be in bounds the `charater`
155+ // This means that while the line must be in bounds the `character`
156156 // must be capped to the end of the line.
157157 // Note that the end of the line here is **before** the line terminator
158− // so we must use `line_end_char_index` istead of `doc.line_to_char(pos_line + 1)`
158+ // so we must use `line_end_char_index` instead of `doc.line_to_char(pos_line + 1)`
159159 //
160160 // FIXME: Helix does not fully comply with the LSP spec for line terminators.
161161 // The LSP standard requires that line terminators are ['\n', '\r\n', '\r'].
@@ -893,7 +893,7 @@ fn start_client(
893893/// * if the file is outside `workspace` return `None`
894894/// * start at `file` and search the file tree upward
895895/// * stop the search at the first `root_dirs` entry that contains `file`
896−/// * if no `root_dirs` matchs `file` stop at workspace
896+/// * if no `root_dirs` matches `file` stop at workspace
897897/// * Returns the top most directory that contains a `root_marker`
898898/// * If no root marker and we stopped at a `root_dirs` entry, return the directory we stopped at
899899/// * If we stopped at `workspace` instead and `workspace_is_cwd == false` return `None`
helix-lsp/src/snippet.rs+6−6
@@ -61,7 +61,7 @@ fn render_elements(
6161 offset: &mut usize,
6262 tabstops: &mut Vec<(usize, (usize, usize))>,
6363 newline_with_offset: &str,
64− include_placeholer: bool,
64+ include_placeholder: bool,
6565) {
6666 use SnippetElement::*;
6767
@@ -89,7 +89,7 @@ fn render_elements(
8989 offset,
9090 tabstops,
9191 newline_with_offset,
92− include_placeholer,
92+ include_placeholder,
9393 );
9494 }
9595 &Tabstop { tabstop } => {
@@ -100,14 +100,14 @@ fn render_elements(
100100 value: inner_snippet_elements,
101101 } => {
102102 let start_offset = *offset;
103− if include_placeholer {
103+ if include_placeholder {
104104 render_elements(
105105 inner_snippet_elements,
106106 insert,
107107 offset,
108108 tabstops,
109109 newline_with_offset,
110− include_placeholer,
110+ include_placeholder,
111111 );
112112 }
113113 tabstops.push((*tabstop, (start_offset, *offset)));
@@ -127,7 +127,7 @@ fn render_elements(
127127pub fn render(
128128 snippet: &Snippet<'_>,
129129 newline_with_offset: &str,
130− include_placeholer: bool,
130+ include_placeholder: bool,
131131) -> (Tendril, Vec<SmallVec<[(usize, usize); 1]>>) {
132132 let mut insert = Tendril::new();
133133 let mut tabstops = Vec::new();
@@ -139,7 +139,7 @@ pub fn render(
139139 &mut offset,
140140 &mut tabstops,
141141 newline_with_offset,
142− include_placeholer,
142+ include_placeholder,
143143 );
144144
145145 // sort in ascending order (except for 0, which should always be the last one (per lsp doc))
helix-term/src/application.rs+2−2
@@ -25,7 +25,7 @@ use crate::{
2525 config::Config,
2626 job::Jobs,
2727 keymap::Keymaps,
28− ui::{self, overlay::overlayed},
28+ ui::{self, overlay::overlaid},
2929};
3030
3131use log::{debug, error, warn};
@@ -169,7 +169,7 @@ impl Application {
169169 std::env::set_current_dir(first).context("set current dir")?;
170170 editor.new_file(Action::VerticalSplit);
171171 let picker = ui::file_picker(".".into(), &config.load().editor);
172− compositor.push(Box::new(overlayed(picker)));
172+ compositor.push(Box::new(overlaid(picker)));
173173 } else {
174174 let nr_of_files = args.files.len();
175175 for (i, (file, pos)) in args.files.into_iter().enumerate() {
helix-term/src/commands.rs+11−11
@@ -54,7 +54,7 @@ use crate::{
5454 job::Callback,
5555 keymap::ReverseKeymap,
5656 ui::{
57− self, editor::InsertEvent, lsp::SignatureHelp, overlay::overlayed, FilePicker, Picker,
57+ self, editor::InsertEvent, lsp::SignatureHelp, overlay::overlaid, FilePicker, Picker,
5858 Popup, Prompt, PromptEvent,
5959 },
6060};
@@ -1561,7 +1561,7 @@ fn half_page_down(cx: &mut Context) {
15611561}
15621562
15631563#[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
15651565// as this function ignores softwrapping (and virtual text) and instead only cares
15661566// about "text visual position"
15671567//
@@ -2147,7 +2147,7 @@ fn global_search(cx: &mut Context) {
21472147 Some((path.clone().into(), Some((*line_num, *line_num))))
21482148 },
21492149 );
2150− compositor.push(Box::new(overlayed(picker)));
2150+ compositor.push(Box::new(overlaid(picker)));
21512151 },
21522152 ));
21532153 Ok(call)
@@ -2421,7 +2421,7 @@ fn append_mode(cx: &mut Context) {
24212421fn file_picker(cx: &mut Context) {
24222422 let root = find_workspace().0;
24232423 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)));
24252425}
24262426
24272427fn file_picker_in_current_buffer_directory(cx: &mut Context) {
@@ -2438,12 +2438,12 @@ fn file_picker_in_current_buffer_directory(cx: &mut Context) {
24382438 };
24392439
24402440 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)));
24422442}
24432443fn file_picker_in_current_directory(cx: &mut Context) {
24442444 let cwd = std::env::current_dir().unwrap_or_else(|_| PathBuf::from("./"));
24452445 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)));
24472447}
24482448
24492449fn buffer_picker(cx: &mut Context) {
@@ -2508,7 +2508,7 @@ fn buffer_picker(cx: &mut Context) {
25082508 Some((meta.id.into(), Some((line, line))))
25092509 },
25102510 );
2511− cx.push_layer(Box::new(overlayed(picker)));
2511+ cx.push_layer(Box::new(overlaid(picker)));
25122512}
25132513
25142514fn jumplist_picker(cx: &mut Context) {
@@ -2590,7 +2590,7 @@ fn jumplist_picker(cx: &mut Context) {
25902590 Some((meta.path.clone()?.into(), Some((line, line))))
25912591 },
25922592 );
2593− cx.push_layer(Box::new(overlayed(picker)));
2593+ cx.push_layer(Box::new(overlaid(picker)));
25942594}
25952595
25962596impl ui::menu::Item for MappableCommand {
@@ -2664,7 +2664,7 @@ pub fn command_palette(cx: &mut Context) {
26642664 }
26652665 }
26662666 });
2667− compositor.push(Box::new(overlayed(picker)));
2667+ compositor.push(Box::new(overlaid(picker)));
26682668 },
26692669 ));
26702670}
@@ -4185,7 +4185,7 @@ pub fn completion(cx: &mut Context) {
41854185 None => return,
41864186 };
41874187
4188− // setup a chanel that allows the request to be canceled
4188+ // setup a channel that allows the request to be canceled
41894189 let (tx, rx) = oneshot::channel();
41904190 // set completion_request so that this request can be canceled
41914191 // by setting completion_request, the old channel stored there is dropped
@@ -4238,7 +4238,7 @@ pub fn completion(cx: &mut Context) {
42384238 let (view, doc) = current_ref!(editor);
42394239 // check if the completion request is stale.
42404240 //
4241− // Completions are completed asynchrounsly and therefore the user could
4241+ // Completions are completed asynchronously and therefore the user could
42424242 //switch document/view or leave insert mode. In all of thoise cases the
42434243 // completion should be discarded
42444244 if editor.mode != Mode::Insert || view.id != trigger_view || doc.id() != trigger_doc {
helix-term/src/commands/dap.rs+2−2
@@ -2,7 +2,7 @@ use super::{Context, Editor};
22use crate::{
33 compositor::{self, Compositor},
44 job::{Callback, Jobs},
5− ui::{self, overlay::overlayed, FilePicker, Picker, Popup, Prompt, PromptEvent, Text},
5+ ui::{self, overlay::overlaid, FilePicker, Picker, Popup, Prompt, PromptEvent, Text},
66};
77use dap::{StackFrame, Thread, ThreadStates};
88use helix_core::syntax::{DebugArgumentValue, DebugConfigCompletion, DebugTemplate};
@@ -270,7 +270,7 @@ pub fn dap_launch(cx: &mut Context) {
270270
271271 let templates = config.templates.clone();
272272
273− cx.push_layer(Box::new(overlayed(Picker::new(
273+ cx.push_layer(Box::new(overlaid(Picker::new(
274274 templates,
275275 (),
276276 |cx, template, _action| {
helix-term/src/commands/lsp.rs+13−13
@@ -26,7 +26,7 @@ use helix_view::{
2626use crate::{
2727 compositor::{self, Compositor},
2828 ui::{
29− self, lsp::SignatureHelp, overlay::overlayed, DynamicPicker, FileLocation, FilePicker,
29+ self, lsp::SignatureHelp, overlay::overlaid, DynamicPicker, FileLocation, FilePicker,
3030 Popup, PromptEvent,
3131 },
3232};
@@ -372,7 +372,7 @@ pub fn symbol_picker(cx: &mut Context) {
372372 };
373373
374374 let picker = sym_picker(symbols, current_url, offset_encoding);
375− compositor.push(Box::new(overlayed(picker)))
375+ compositor.push(Box::new(overlaid(picker)))
376376 }
377377 },
378378 )
@@ -431,7 +431,7 @@ pub fn workspace_symbol_picker(cx: &mut Context) {
431431 future.boxed()
432432 };
433433 let dyn_picker = DynamicPicker::new(picker, Box::new(get_symbols));
434− compositor.push(Box::new(overlayed(dyn_picker)))
434+ compositor.push(Box::new(overlaid(dyn_picker)))
435435 },
436436 )
437437}
@@ -454,7 +454,7 @@ pub fn diagnostics_picker(cx: &mut Context) {
454454 DiagnosticsFormat::HideSourcePath,
455455 offset_encoding,
456456 );
457− cx.push_layer(Box::new(overlayed(picker)));
457+ cx.push_layer(Box::new(overlaid(picker)));
458458 }
459459}
460460
@@ -471,7 +471,7 @@ pub fn workspace_diagnostics_picker(cx: &mut Context) {
471471 DiagnosticsFormat::ShowSourcePath,
472472 offset_encoding,
473473 );
474− cx.push_layer(Box::new(overlayed(picker)));
474+ cx.push_layer(Box::new(overlaid(picker)));
475475}
476476
477477impl ui::menu::Item for lsp::CodeActionOrCommand {
@@ -491,7 +491,7 @@ impl ui::menu::Item for lsp::CodeActionOrCommand {
491491///
492492/// While the `kind` field is defined as open ended in the LSP spec (any value may be used)
493493/// in practice a closed set of common values (mostly suggested in the LSP spec) are used.
494−/// VSCode displays each of these categories seperatly (seperated by a heading in the codeactions picker)
494+/// VSCode displays each of these categories separately (separated by a heading in the codeactions picker)
495495/// to make them easier to navigate. Helix does not display these headings to the user.
496496/// However it does sort code actions by their categories to achieve the same order as the VScode picker,
497497/// just without the headings.
@@ -521,7 +521,7 @@ fn action_category(action: &CodeActionOrCommand) -> u32 {
521521 }
522522}
523523
524−fn action_prefered(action: &CodeActionOrCommand) -> bool {
524+fn action_preferred(action: &CodeActionOrCommand) -> bool {
525525 matches!(
526526 action,
527527 CodeActionOrCommand::CodeAction(CodeAction {
@@ -600,12 +600,12 @@ pub fn code_action(cx: &mut Context) {
600600 }
601601
602602 // Sort codeactions into a useful order. This behaviour is only partially described in the LSP spec.
603− // Many details are modeled after vscode because langauge servers are usually tested against it.
603+ // Many details are modeled after vscode because language servers are usually tested against it.
604604 // VScode sorts the codeaction two times:
605605 //
606606 // First the codeactions that fix some diagnostics are moved to the front.
607607 // If both codeactions fix some diagnostics (or both fix none) the codeaction
608− // that is marked with `is_preffered` is shown first. The codeactions are then shown in seperate
608+ // that is marked with `is_preferred` is shown first. The codeactions are then shown in separate
609609 // submenus that only contain a certain category (see `action_category`) of actions.
610610 //
611611 // Below this done in in a single sorting step
@@ -627,10 +627,10 @@ pub fn code_action(cx: &mut Context) {
627627 return order;
628628 }
629629
630− // if one of the codeactions is marked as prefered show it first
630+ // if one of the codeactions is marked as preferred show it first
631631 // otherwise keep the original LSP sorting
632− action_prefered(action1)
633− .cmp(&action_prefered(action2))
632+ action_preferred(action1)
633+ .cmp(&action_preferred(action2))
634634 .reverse()
635635 });
636636
@@ -955,7 +955,7 @@ fn goto_impl(
955955 },
956956 move |_editor, location| Some(location_to_file_location(location)),
957957 );
958− compositor.push(Box::new(overlayed(picker)));
958+ compositor.push(Box::new(overlaid(picker)));
959959 }
960960 }
961961}
helix-term/src/commands/typed.rs+2−2
@@ -116,7 +116,7 @@ fn open(cx: &mut compositor::Context, args: &[Cow<str>], event: PromptEvent) ->
116116 let call: job::Callback = job::Callback::EditorCompositor(Box::new(
117117 move |editor: &mut Editor, compositor: &mut Compositor| {
118118 let picker = ui::file_picker(path, &editor.config());
119− compositor.push(Box::new(overlayed(picker)));
119+ compositor.push(Box::new(overlaid(picker)));
120120 },
121121 ));
122122 Ok(call)
@@ -1335,7 +1335,7 @@ fn lsp_workspace_command(
13351335 let picker = ui::Picker::new(commands, (), |cx, command, _action| {
13361336 execute_lsp_command(cx.editor, command.clone());
13371337 });
1338− compositor.push(Box::new(overlayed(picker)))
1338+ compositor.push(Box::new(overlaid(picker)))
13391339 },
13401340 ));
13411341 Ok(call)
helix-term/src/ui/document.rs+4−4
@@ -118,7 +118,7 @@ pub fn render_document(
118118
119119fn translate_positions(
120120 char_pos: usize,
121− first_visisble_char_idx: usize,
121+ first_visible_char_idx: usize,
122122 translated_positions: &mut [TranslatedPosition],
123123 text_fmt: &TextFormat,
124124 renderer: &mut TextRenderer,
@@ -126,7 +126,7 @@ fn translate_positions(
126126) {
127127 // check if any positions translated on the fly (like cursor) has been reached
128128 for (char_idx, callback) in &mut *translated_positions {
129− if *char_idx < char_pos && *char_idx >= first_visisble_char_idx {
129+ if *char_idx < char_pos && *char_idx >= first_visible_char_idx {
130130 // by replacing the char_index with usize::MAX large number we ensure
131131 // that the same position is only translated once
132132 // text will never reach usize::MAX as rust memory allocations are limited
@@ -259,7 +259,7 @@ pub fn render_text<'t>(
259259 }
260260 }
261261
262− // aquire the correct grapheme style
262+ // acquire the correct grapheme style
263263 if char_pos >= style_span.1 {
264264 style_span = styles.next().unwrap_or((Style::default(), usize::MAX));
265265 }
@@ -404,7 +404,7 @@ impl<'a> TextRenderer<'a> {
404404 let cut_off_start = self.col_offset.saturating_sub(position.col);
405405 let is_whitespace = grapheme.is_whitespace();
406406
407− // TODO is it correct to apply the whitspace style to all unicode white spaces?
407+ // TODO is it correct to apply the whitespace style to all unicode white spaces?
408408 if is_whitespace {
409409 style = style.patch(self.whitespace_style);
410410 }
helix-term/src/ui/fuzzy_match.rs+3−3
@@ -54,7 +54,7 @@ impl QueryAtom {
5454 }
5555
5656 fn indices(&self, matcher: &Matcher, item: &str, indices: &mut Vec<usize>) -> bool {
57− // for inverse there are no indicies to return
57+ // for inverse there are no indices to return
5858 // just return whether we matched
5959 if self.inverse {
6060 return self.matches(matcher, item);
@@ -120,7 +120,7 @@ enum QueryAtomKind {
120120 ///
121121 /// Usage: `foo`
122122 Fuzzy,
123− /// Item contains query atom as a continous substring
123+ /// Item contains query atom as a continuous substring
124124 ///
125125 /// Usage `'foo`
126126 Substring,
@@ -213,7 +213,7 @@ impl FuzzyQuery {
213213 Some(score)
214214 }
215215
216− pub fn fuzzy_indicies(&self, item: &str, matcher: &Matcher) -> Option<(i64, Vec<usize>)> {
216+ pub fn fuzzy_indices(&self, item: &str, matcher: &Matcher) -> Option<(i64, Vec<usize>)> {
217217 let (score, mut indices) = self.first_fuzzy_atom.as_ref().map_or_else(
218218 || Some((0, Vec::new())),
219219 |atom| matcher.fuzzy_indices(item, atom),
helix-term/src/ui/fuzzy_match/test.rs+2−2
@@ -7,8 +7,8 @@ fn run_test<'a>(query: &str, items: &'a [&'a str]) -> Vec<String> {
77 items
88 .iter()
99 .filter_map(|item| {
10− let (_, indicies) = query.fuzzy_indicies(item, &matcher)?;
11− let matched_string = indicies
10+ let (_, indices) = query.fuzzy_indices(item, &matcher)?;
11+ let matched_string = indices
1212 .iter()
1313 .map(|&pos| item.chars().nth(pos).unwrap())
1414 .collect();
helix-term/src/ui/overlay.rs+1−1
@@ -16,7 +16,7 @@ pub struct Overlay<T> {
1616}
1717
1818/// Surrounds the component with a margin of 5% on each side, and an additional 2 rows at the bottom
19−pub fn overlayed<T>(content: T) -> Overlay<T> {
19+pub fn overlaid<T>(content: T) -> Overlay<T> {
2020 Overlay {
2121 content,
2222 calc_child_size: Box::new(|rect: Rect| clip_rect_relative(rect.clip_bottom(2), 90, 90)),
helix-term/src/ui/picker.rs+1−1
@@ -794,7 +794,7 @@ impl<T: Item + 'static> Component for Picker<T> {
794794 // might be inconsistencies. This is the best we can do since only the
795795 // text in Row is displayed to the end user.
796796 let (_score, highlights) = FuzzyQuery::new(self.prompt.line())
797− .fuzzy_indicies(&line, &self.matcher)
797+ .fuzzy_indices(&line, &self.matcher)
798798 .unwrap_or_default();
799799
800800 let highlight_byte_ranges: Vec<_> = line
helix-term/tests/test/movement.rs+1−1
@@ -391,7 +391,7 @@ async fn cursor_position_newly_opened_file() -> anyhow::Result<()> {
391391
392392#[tokio::test(flavor = "multi_thread")]
393393async fn cursor_position_append_eof() -> anyhow::Result<()> {
394− // Selection is fowards
394+ // Selection is forwards
395395 test((
396396 "#[foo|]#",
397397 "abar<esc>",
helix-tui/src/backend/crossterm.rs+3−3
@@ -344,9 +344,9 @@ impl ModifierDiff {
344344 }
345345}
346346
347−/// Crossterm uses semicolon as a seperator for colors
348−/// this is actually not spec compliant (altough commonly supported)
349−/// However the correct approach is to use colons as a seperator.
347+/// Crossterm uses semicolon as a separator for colors
348+/// this is actually not spec compliant (although commonly supported)
349+/// However the correct approach is to use colons as a separator.
350350/// This usually doesn't make a difference for emulators that do support colored underlines.
351351/// However terminals that do not support colored underlines will ignore underlines colors with colons
352352/// while escape sequences with semicolons are always processed which leads to weird visual artifacts.
helix-view/src/editor.rs+1−1
@@ -851,7 +851,7 @@ pub struct Editor {
851851 pub config_events: (UnboundedSender<ConfigEvent>, UnboundedReceiver<ConfigEvent>),
852852 /// Allows asynchronous tasks to control the rendering
853853 /// The `Notify` allows asynchronous tasks to request the editor to perform a redraw
854− /// The `RwLock` blocks the editor from performing the render until an exclusive lock can be aquired
854+ /// The `RwLock` blocks the editor from performing the render until an exclusive lock can be acquired
855855 pub redraw_handle: RedrawHandle,
856856 pub needs_redraw: bool,
857857 /// Cached position of the cursor calculated during rendering.
helix-view/src/theme.rs+1−1
@@ -128,7 +128,7 @@ impl Loader {
128128 let parent_palette = parent_theme_toml.get("palette");
129129 let palette = theme_toml.get("palette");
130130
131− // handle the table seperately since it needs a `merge_depth` of 2
131+ // handle the table separately since it needs a `merge_depth` of 2
132132 // this would conflict with the rest of the theme merge strategy
133133 let palette_values = match (parent_palette, palette) {
134134 (Some(parent_palette), Some(palette)) => {