diff options
author | Ryan Russell | 2022-06-01 17:01:37 +0000 |
---|---|---|
committer | GitHub | 2022-06-01 17:01:37 +0000 |
commit | ae12c58f0ff924e9cc512f0368e5fca858566cdd (patch) | |
tree | 62bde8852872881444465558b3fc576335c8e420 /helix-term/src | |
parent | fc666db6b99a8baab0acf3791f9965e7cb2be9e1 (diff) |
Improve Readability (#2639)
Diffstat (limited to 'helix-term/src')
-rw-r--r-- | helix-term/src/commands.rs | 4 | ||||
-rw-r--r-- | helix-term/src/commands/lsp.rs | 4 | ||||
-rw-r--r-- | helix-term/src/keymap.rs | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index a692822f..44e2f8c2 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -1964,7 +1964,7 @@ fn shrink_to_line_bounds(cx: &mut Context) { // line_to_char gives us the start position of the line, so // we need to get the start position of the next line. In // the editor, this will correspond to the cursor being on - // the EOL whitespace charactor, which is what we want. + // the EOL whitespace character, which is what we want. let mut end = text.line_to_char((end_line + 1).min(text.len_lines())); if start != range.from() { @@ -2929,7 +2929,7 @@ pub mod insert { Transaction::change_by_selection(doc.text(), doc.selection(view.id), |range| { let pos = range.cursor(text); let line_start_pos = text.line_to_char(range.cursor_line(text)); - // considier to delete by indent level if all characters before `pos` are indent units. + // consider to delete by indent level if all characters before `pos` are indent units. let fragment = Cow::from(text.slice(line_start_pos..pos)); if !fragment.is_empty() && fragment.chars().all(|ch| ch.is_whitespace()) { if text.get_char(pos.saturating_sub(1)) == Some('\t') { diff --git a/helix-term/src/commands/lsp.rs b/helix-term/src/commands/lsp.rs index 90a1ad7f..bf62fd3c 100644 --- a/helix-term/src/commands/lsp.rs +++ b/helix-term/src/commands/lsp.rs @@ -416,8 +416,8 @@ pub fn apply_workspace_edit( } lsp::DocumentChanges::Operations(operations) => { log::debug!("document changes - operations: {:?}", operations); - for operateion in operations { - match operateion { + for operation in operations { + match operation { lsp::DocumentChangeOperation::Op(op) => { apply_document_resource_op(op).unwrap(); } diff --git a/helix-term/src/keymap.rs b/helix-term/src/keymap.rs index 37dbc5de..db958833 100644 --- a/helix-term/src/keymap.rs +++ b/helix-term/src/keymap.rs @@ -542,7 +542,7 @@ mod tests { vec![vec![key!('j')], vec![key!('k')]] ), ]), - "Mistmatch" + "Mismatch" ) } } |