aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorchunghha2022-04-27 19:21:20 +0000
committerGitHub2022-04-27 19:21:20 +0000
commit3a398eec56c907f9d0f166e77242eb13ded229bc (patch)
tree4411668f181c0a1ae31b6599a50c196bccd709e6 /helix-term
parent2e46961886cb40b45a03a91c59823b0e437a9867 (diff)
fix typos (#2304)
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/commands.rs2
-rw-r--r--helix-term/src/commands/typed.rs4
-rw-r--r--helix-term/src/ui/editor.rs2
3 files changed, 4 insertions, 4 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 8a0313ef..ee2afb72 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -3715,7 +3715,7 @@ fn shrink_selection(cx: &mut Context) {
doc.set_selection(view.id, prev_selection);
return;
} else {
- // clear existing selection as they can't be shrinked to anyway
+ // clear existing selection as they can't be shrunk to anyway
view.object_selections.clear();
}
}
diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs
index 3e93cfd7..394760a2 100644
--- a/helix-term/src/commands/typed.rs
+++ b/helix-term/src/commands/typed.rs
@@ -1169,14 +1169,14 @@ pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[
TypableCommand {
name: "buffer-close-all",
aliases: &["bca", "bcloseall"],
- doc: "Close all buffers, without quiting.",
+ doc: "Close all buffers, without quitting.",
fun: buffer_close_all,
completer: None,
},
TypableCommand {
name: "buffer-close-all!",
aliases: &["bca!", "bcloseall!"],
- doc: "Close all buffers forcefully (ignoring unsaved changes), without quiting.",
+ doc: "Close all buffers forcefully (ignoring unsaved changes), without quitting.",
fun: force_buffer_close_all,
completer: None,
},
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs
index 798b8ac8..ce8746a7 100644
--- a/helix-term/src/ui/editor.rs
+++ b/helix-term/src/ui/editor.rs
@@ -1239,7 +1239,7 @@ impl Component for EditorView {
view.ensure_cursor_in_view(doc, config.scrolloff);
// Store a history state if not in insert mode. This also takes care of
- // commiting changes when leaving insert mode.
+ // committing changes when leaving insert mode.
if doc.mode() != Mode::Insert {
doc.append_changes_to_history(view.id);
}