on master help sign in
fix typos (#2304)
3a398eechunghha
CHANGELOG.md+1−1
@@ -445,7 +445,7 @@ Fixes:
445- A bunch of bugs regarding `o`/`O` behavior ([#281](https://github.com/helix-editor/helix/pull/281))
445- A bunch of bugs regarding `o`/`O` behavior ([#281](https://github.com/helix-editor/helix/pull/281))
446- `~` expansion now works in file completion ([#284](https://github.com/helix-editor/helix/pull/284))
446- `~` expansion now works in file completion ([#284](https://github.com/helix-editor/helix/pull/284))
447- Several UI related overflow crashes ([#318](https://github.com/helix-editor/helix/pull/318))
447- Several UI related overflow crashes ([#318](https://github.com/helix-editor/helix/pull/318))
448−- Fix a test failure occuring only on `test --release` ([`4f108ab1`](https://github.com/helix-editor/helix/commit/4f108ab1b2197809506bd7305ad903a3525eabfa))
448+- Fix a test failure occurring only on `test --release` ([`4f108ab1`](https://github.com/helix-editor/helix/commit/4f108ab1b2197809506bd7305ad903a3525eabfa))
449- Prompts now support unicode input ([#295](https://github.com/helix-editor/helix/pull/295))
449- Prompts now support unicode input ([#295](https://github.com/helix-editor/helix/pull/295))
450- Completion documentation no longer overlaps the popup ([#322](https://github.com/helix-editor/helix/pull/322))
450- Completion documentation no longer overlaps the popup ([#322](https://github.com/helix-editor/helix/pull/322))
451- Fix a crash when trying to select `^` ([`9c534614`](https://github.com/helix-editor/helix/commit/9c53461429a3e72e3b1fb87d7ca490e168d7dee2))
451- Fix a crash when trying to select `^` ([`9c534614`](https://github.com/helix-editor/helix/commit/9c53461429a3e72e3b1fb87d7ca490e168d7dee2))
book/src/configuration.md+1−1
@@ -43,7 +43,7 @@ hidden = false
43| `completion-trigger-len` | The min-length of word under cursor to trigger autocompletion | `2` |
43| `completion-trigger-len` | The min-length of word under cursor to trigger autocompletion | `2` |
44| `auto-info` | Whether to display infoboxes | `true` |
44| `auto-info` | Whether to display infoboxes | `true` |
45| `true-color` | Set to `true` to override automatic detection of terminal truecolor support in the event of a false negative. | `false` |
45| `true-color` | Set to `true` to override automatic detection of terminal truecolor support in the event of a false negative. | `false` |
46−| `rulers` | List of column positions at which to display the rulers. Can be overidden by language specific `rulers` in `languages.toml` file. | `[]` |
46+| `rulers` | List of column positions at which to display the rulers. Can be overridden by language specific `rulers` in `languages.toml` file. | `[]` |
47
47
48### `[editor.lsp]` Section
48### `[editor.lsp]` Section
49
49
book/src/generated/typable-cmd.md+2−2
@@ -7,8 +7,8 @@
7| `:buffer-close!`, `:bc!`, `:bclose!` | Close the current buffer forcefully (ignoring unsaved changes). |
7| `:buffer-close!`, `:bc!`, `:bclose!` | Close the current buffer forcefully (ignoring unsaved changes). |
8| `:buffer-close-others`, `:bco`, `:bcloseother` | Close all buffers but the currently focused one. |
8| `:buffer-close-others`, `:bco`, `:bcloseother` | Close all buffers but the currently focused one. |
9| `:buffer-close-others!`, `:bco!`, `:bcloseother!` | Close all buffers but the currently focused one. |
9| `:buffer-close-others!`, `:bco!`, `:bcloseother!` | Close all buffers but the currently focused one. |
10−| `:buffer-close-all`, `:bca`, `:bcloseall` | Close all buffers, without quiting. |
10+| `:buffer-close-all`, `:bca`, `:bcloseall` | Close all buffers, without quitting. |
11−| `:buffer-close-all!`, `:bca!`, `:bcloseall!` | Close all buffers forcefully (ignoring unsaved changes), without quiting. |
11+| `:buffer-close-all!`, `:bca!`, `:bcloseall!` | Close all buffers forcefully (ignoring unsaved changes), without quitting. |
12| `:buffer-next`, `:bn`, `:bnext` | Go to next buffer. |
12| `:buffer-next`, `:bn`, `:bnext` | Go to next buffer. |
13| `:buffer-previous`, `:bp`, `:bprev` | Go to previous buffer. |
13| `:buffer-previous`, `:bp`, `:bprev` | Go to previous buffer. |
14| `:write`, `:w` | Write changes to disk. Accepts an optional path (:write some/path.txt) |
14| `:write`, `:w` | Write changes to disk. Accepts an optional path (:write some/path.txt) |
book/src/guides/README.md+1−1
@@ -1,4 +1,4 @@
1# Guides
1# Guides
2
2
3This section contains guides for adding new language server configurations,
3This section contains guides for adding new language server configurations,
4−tree-sitter grammers, textobject queries, etc.
4+tree-sitter grammars, textobject queries, etc.
book/src/guides/indent.md+1−1
@@ -39,7 +39,7 @@ changed by using a `#set!` declaration anywhere in the pattern:
39## Capture Types
39## Capture Types
40
40
41- `@indent` (default scope `tail`):
41- `@indent` (default scope `tail`):
42−Increase the indent level by 1. Multiple occurences in the same line
42+Increase the indent level by 1. Multiple occurrences in the same line
43don't stack. If there is at least one `@indent` and one `@outdent`
43don't stack. If there is at least one `@indent` and one `@outdent`
44capture on the same line, the indent level isn't changed at all.
44capture on the same line, the indent level isn't changed at all.
45
45
book/src/install.md+1−1
@@ -58,7 +58,7 @@ cargo install --path helix-term
58This will install the `hx` binary to `$HOME/.cargo/bin`.
58This will install the `hx` binary to `$HOME/.cargo/bin`.
59
59
60Helix also needs it's runtime files so make sure to copy/symlink the `runtime/` directory into the
60Helix also needs it's runtime files so make sure to copy/symlink the `runtime/` directory into the
61−config directory (for example `~/.config/helix/runtime` on Linux/macOS). This location can be overriden
61+config directory (for example `~/.config/helix/runtime` on Linux/macOS). This location can be overridden
62via the `HELIX_RUNTIME` environment variable.
62via the `HELIX_RUNTIME` environment variable.
63
63
64| OS | command |
64| OS | command |
book/src/keymap.md+1−1
@@ -191,7 +191,7 @@ Jumps to various locations.
191
191
192#### Match mode
192#### Match mode
193
193
194−Enter this mode using `m` from normal mode. See the relavant section
194+Enter this mode using `m` from normal mode. See the relevant section
195in [Usage](./usage.md) for an explanation about [surround](./usage.md#surround)
195in [Usage](./usage.md) for an explanation about [surround](./usage.md#surround)
196and [textobject](./usage.md#textobject) usage.
196and [textobject](./usage.md#textobject) usage.
197
197
book/src/themes.md+1−1
@@ -158,7 +158,7 @@ We use a similar set of scopes as
158 - `builtin`
158 - `builtin`
159 - `method`
159 - `method`
160 - `macro`
160 - `macro`
161− - `special` (preprocesor in C)
161+ - `special` (preprocessor in C)
162
162
163- `tag` - Tags (e.g. `<body>` in HTML)
163- `tag` - Tags (e.g. `<body>` in HTML)
164
164
book/theme/book.js+3−3
@@ -601,10 +601,10 @@ function playground_text(playground) {
601 });
601 });
602})();
602})();
603
603
604−(function controllMenu() {
604+(function controlMenu() {
605 var menu = document.getElementById('menu-bar');
605 var menu = document.getElementById('menu-bar');
606
606
607− (function controllPosition() {
607+ (function controlPosition() {
608 var scrollTop = document.scrollingElement.scrollTop;
608 var scrollTop = document.scrollingElement.scrollTop;
609 var prevScrollTop = scrollTop;
609 var prevScrollTop = scrollTop;
610 var minMenuY = -menu.clientHeight - 50;
610 var minMenuY = -menu.clientHeight - 50;
@@ -647,7 +647,7 @@ function playground_text(playground) {
647 prevScrollTop = scrollTop;
647 prevScrollTop = scrollTop;
648 }, { passive: true });
648 }, { passive: true });
649 })();
649 })();
650− (function controllBorder() {
650+ (function controlBorder() {
651 menu.classList.remove('bordered');
651 menu.classList.remove('bordered');
652 document.addEventListener('scroll', function () {
652 document.addEventListener('scroll', function () {
653 if (menu.offsetTop === 0) {
653 if (menu.offsetTop === 0) {
book/theme/css/chrome.css+1−1
@@ -390,7 +390,7 @@ ul#searchresults span.teaser em {
390
390
391.chapter li {
391.chapter li {
392 display: flex;
392 display: flex;
393− color: var(--sidebar-non-existant);
393+ color: var(--sidebar-non-existent);
394}
394}
395.chapter li a {
395.chapter li a {
396 display: block;
396 display: block;
book/theme/css/variables.css+8−8
@@ -16,7 +16,7 @@
16
16
17 --sidebar-bg: #14191f;
17 --sidebar-bg: #14191f;
18 --sidebar-fg: #c8c9db;
18 --sidebar-fg: #c8c9db;
19− --sidebar-non-existant: #5c6773;
19+ --sidebar-non-existent: #5c6773;
20 --sidebar-active: #ffb454;
20 --sidebar-active: #ffb454;
21 --sidebar-spacer: #2d334f;
21 --sidebar-spacer: #2d334f;
22
22
@@ -56,7 +56,7 @@
56
56
57 --sidebar-bg: #292c2f;
57 --sidebar-bg: #292c2f;
58 --sidebar-fg: #a1adb8;
58 --sidebar-fg: #a1adb8;
59− --sidebar-non-existant: #505254;
59+ --sidebar-non-existent: #505254;
60 --sidebar-active: #3473ad;
60 --sidebar-active: #3473ad;
61 --sidebar-spacer: #393939;
61 --sidebar-spacer: #393939;
62
62
@@ -96,7 +96,7 @@
96
96
97 --sidebar-bg: #fafafa;
97 --sidebar-bg: #fafafa;
98 --sidebar-fg: hsl(0, 0%, 0%);
98 --sidebar-fg: hsl(0, 0%, 0%);
99− --sidebar-non-existant: #aaaaaa;
99+ --sidebar-non-existent: #aaaaaa;
100 --sidebar-active: #1f1fff;
100 --sidebar-active: #1f1fff;
101 --sidebar-spacer: #f4f4f4;
101 --sidebar-spacer: #f4f4f4;
102
102
@@ -136,7 +136,7 @@
136
136
137 --sidebar-bg: #282d3f;
137 --sidebar-bg: #282d3f;
138 --sidebar-fg: #c8c9db;
138 --sidebar-fg: #c8c9db;
139− --sidebar-non-existant: #505274;
139+ --sidebar-non-existent: #505274;
140 --sidebar-active: #2b79a2;
140 --sidebar-active: #2b79a2;
141 --sidebar-spacer: #2d334f;
141 --sidebar-spacer: #2d334f;
142
142
@@ -176,7 +176,7 @@
176
176
177 --sidebar-bg: #3b2e2a;
177 --sidebar-bg: #3b2e2a;
178 --sidebar-fg: #c8c9db;
178 --sidebar-fg: #c8c9db;
179− --sidebar-non-existant: #505254;
179+ --sidebar-non-existent: #505254;
180 --sidebar-active: #e69f67;
180 --sidebar-active: #e69f67;
181 --sidebar-spacer: #45373a;
181 --sidebar-spacer: #45373a;
182
182
@@ -217,7 +217,7 @@
217
217
218 --sidebar-bg: #292c2f;
218 --sidebar-bg: #292c2f;
219 --sidebar-fg: #a1adb8;
219 --sidebar-fg: #a1adb8;
220− --sidebar-non-existant: #505254;
220+ --sidebar-non-existent: #505254;
221 --sidebar-active: #3473ad;
221 --sidebar-active: #3473ad;
222 --sidebar-spacer: #393939;
222 --sidebar-spacer: #393939;
223
223
@@ -259,7 +259,7 @@
259
259
260 --sidebar-bg: #281733;
260 --sidebar-bg: #281733;
261 --sidebar-fg: #c8c9db;
261 --sidebar-fg: #c8c9db;
262− --sidebar-non-existant: #505274;
262+ --sidebar-non-existent: #505274;
263 --sidebar-active: #a4a0e8;
263 --sidebar-active: #a4a0e8;
264 --sidebar-spacer: #2d334f;
264 --sidebar-spacer: #2d334f;
265
265
@@ -304,7 +304,7 @@
304
304
305 --sidebar-bg: #281733;
305 --sidebar-bg: #281733;
306 --sidebar-fg: #c8c9db;
306 --sidebar-fg: #c8c9db;
307− --sidebar-non-existant: #505274;
307+ --sidebar-non-existent: #505274;
308 --sidebar-active: #a4a0e8;
308 --sidebar-active: #a4a0e8;
309 --sidebar-spacer: #2d334f;
309 --sidebar-spacer: #2d334f;
310
310
helix-core/src/history.rs+4−4
@@ -22,10 +22,10 @@ use std::time::{Duration, Instant};
22///
22///
23/// The current revision is the one currently displayed in the buffer.
23/// The current revision is the one currently displayed in the buffer.
24///
24///
25−/// Commiting a new revision to the history will update the last child of the
25+/// Committing a new revision to the history will update the last child of the
26/// current revision, and push a new revision to the end of the vector.
26/// current revision, and push a new revision to the end of the vector.
27///
27///
28−/// Revisions are commited with a timestamp. :earlier and :later can be used
28+/// Revisions are committed with a timestamp. :earlier and :later can be used
29/// to jump to the closest revision to a moment in time relative to the timestamp
29/// to jump to the closest revision to a moment in time relative to the timestamp
30/// of the current revision plus (:later) or minus (:earlier) the duration
30/// of the current revision plus (:later) or minus (:earlier) the duration
31/// given to the command. If a single integer is given, the editor will instead
31/// given to the command. If a single integer is given, the editor will instead
@@ -33,7 +33,7 @@ use std::time::{Duration, Instant};
33///
33///
34/// Limitations:
34/// Limitations:
35/// * Changes in selections currently don't commit history changes. The selection
35/// * Changes in selections currently don't commit history changes. The selection
36−/// will only be updated to the state after a commited buffer change.
36+/// will only be updated to the state after a committed buffer change.
37/// * The vector of history revisions is currently unbounded. This might
37/// * The vector of history revisions is currently unbounded. This might
38/// cause the memory consumption to grow significantly large during long
38/// cause the memory consumption to grow significantly large during long
39/// editing sessions.
39/// editing sessions.
@@ -288,7 +288,7 @@ pub enum UndoKind {
288 TimePeriod(std::time::Duration),
288 TimePeriod(std::time::Duration),
289}
289}
290
290
291−/// A subset of sytemd.time time span syntax units.
291+/// A subset of systemd.time time span syntax units.
292const TIME_UNITS: &[(&[&str], &str, u64)] = &[
292const TIME_UNITS: &[(&[&str], &str, u64)] = &[
293 (&["seconds", "second", "sec", "s"], "seconds", 1),
293 (&["seconds", "second", "sec", "s"], "seconds", 1),
294 (&["minutes", "minute", "min", "m"], "minutes", 60),
294 (&["minutes", "minute", "min", "m"], "minutes", 60),
helix-core/src/path.rs+1−1
@@ -14,7 +14,7 @@ pub fn fold_home_dir(path: &Path) -> PathBuf {
14 path.to_path_buf()
14 path.to_path_buf()
15}
15}
16
16
17−/// Expands tilde `~` into users home directory if avilable, otherwise returns the path
17+/// Expands tilde `~` into users home directory if available, otherwise returns the path
18/// unchanged. The tilde will only be expanded when present as the first component of the path
18/// unchanged. The tilde will only be expanded when present as the first component of the path
19/// and only slash follows it.
19/// and only slash follows it.
20pub fn expand_tilde(path: &Path) -> PathBuf {
20pub fn expand_tilde(path: &Path) -> PathBuf {
helix-core/src/syntax.rs+6−6
@@ -229,7 +229,7 @@ pub struct TextObjectQuery {
229
229
230pub enum CapturedNode<'a> {
230pub enum CapturedNode<'a> {
231 Single(Node<'a>),
231 Single(Node<'a>),
232− /// Guarenteed to be not empty
232+ /// Guaranteed to be not empty
233 Grouped(Vec<Node<'a>>),
233 Grouped(Vec<Node<'a>>),
234}
234}
235
235
@@ -1141,7 +1141,7 @@ pub enum HighlightEvent {
1141 HighlightEnd,
1141 HighlightEnd,
1142}
1142}
1143
1143
1144−/// Contains the data neeeded to higlight code written in a particular language.
1144+/// Contains the data needed to highlight code written in a particular language.
1145///
1145///
1146/// This struct is immutable and can be shared between threads.
1146/// This struct is immutable and can be shared between threads.
1147#[derive(Debug)]
1147#[derive(Debug)]
@@ -1976,7 +1976,7 @@ mod test {
1976 let source = Rope::from_str(
1976 let source = Rope::from_str(
1977 r#"
1977 r#"
1978/// a comment on
1978/// a comment on
1979−/// mutiple lines
1979+/// multiple lines
1980 "#,
1980 "#,
1981 );
1981 );
1982
1982
@@ -2006,10 +2006,10 @@ mod test {
2006 )
2006 )
2007 };
2007 };
2008
2008
2009− test("quantified_nodes", 1..35);
2009+ test("quantified_nodes", 1..36);
2010 // NOTE: Enable after implementing proper node group capturing
2010 // NOTE: Enable after implementing proper node group capturing
2011− // test("quantified_nodes_grouped", 1..35);
2011+ // test("quantified_nodes_grouped", 1..36);
2012− // test("multiple_nodes_grouped", 1..35);
2012+ // test("multiple_nodes_grouped", 1..36);
2013 }
2013 }
2014
2014
2015 #[test]
2015 #[test]
helix-lsp/src/lib.rs+2−2
@@ -428,7 +428,7 @@ impl LspProgressMap {
428 Self::default()
428 Self::default()
429 }
429 }
430
430
431− /// Returns a map of all tokens coresponding to the lanaguage server with `id`.
431+ /// Returns a map of all tokens corresponding to the language server with `id`.
432 pub fn progress_map(&self, id: usize) -> Option<&HashMap<lsp::ProgressToken, ProgressStatus>> {
432 pub fn progress_map(&self, id: usize) -> Option<&HashMap<lsp::ProgressToken, ProgressStatus>> {
433 self.0.get(&id)
433 self.0.get(&id)
434 }
434 }
@@ -466,7 +466,7 @@ impl LspProgressMap {
466 self.0.get_mut(&id).and_then(|vals| vals.remove(token))
466 self.0.get_mut(&id).and_then(|vals| vals.remove(token))
467 }
467 }
468
468
469− /// Updates the progess of `token` for server with `id` to `status`, returns the value replaced or `None`.
469+ /// Updates the progress of `token` for server with `id` to `status`, returns the value replaced or `None`.
470 pub fn update(
470 pub fn update(
471 &mut self,
471 &mut self,
472 id: usize,
472 id: usize,
helix-term/src/commands.rs+1−1
@@ -3715,7 +3715,7 @@ fn shrink_selection(cx: &mut Context) {
3715 doc.set_selection(view.id, prev_selection);
3715 doc.set_selection(view.id, prev_selection);
3716 return;
3716 return;
3717 } else {
3717 } else {
3718− // clear existing selection as they can't be shrinked to anyway
3718+ // clear existing selection as they can't be shrunk to anyway
3719 view.object_selections.clear();
3719 view.object_selections.clear();
3720 }
3720 }
3721 }
3721 }
helix-term/src/commands/typed.rs+2−2
@@ -1169,14 +1169,14 @@ pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[
1169 TypableCommand {
1169 TypableCommand {
1170 name: "buffer-close-all",
1170 name: "buffer-close-all",
1171 aliases: &["bca", "bcloseall"],
1171 aliases: &["bca", "bcloseall"],
1172− doc: "Close all buffers, without quiting.",
1172+ doc: "Close all buffers, without quitting.",
1173 fun: buffer_close_all,
1173 fun: buffer_close_all,
1174 completer: None,
1174 completer: None,
1175 },
1175 },
1176 TypableCommand {
1176 TypableCommand {
1177 name: "buffer-close-all!",
1177 name: "buffer-close-all!",
1178 aliases: &["bca!", "bcloseall!"],
1178 aliases: &["bca!", "bcloseall!"],
1179− doc: "Close all buffers forcefully (ignoring unsaved changes), without quiting.",
1179+ doc: "Close all buffers forcefully (ignoring unsaved changes), without quitting.",
1180 fun: force_buffer_close_all,
1180 fun: force_buffer_close_all,
1181 completer: None,
1181 completer: None,
1182 },
1182 },
helix-term/src/ui/editor.rs+1−1
@@ -1239,7 +1239,7 @@ impl Component for EditorView {
1239 view.ensure_cursor_in_view(doc, config.scrolloff);
1239 view.ensure_cursor_in_view(doc, config.scrolloff);
1240
1240
1241 // Store a history state if not in insert mode. This also takes care of
1241 // Store a history state if not in insert mode. This also takes care of
1242− // commiting changes when leaving insert mode.
1242+ // committing changes when leaving insert mode.
1243 if doc.mode() != Mode::Insert {
1243 if doc.mode() != Mode::Insert {
1244 doc.append_changes_to_history(view.id);
1244 doc.append_changes_to_history(view.id);
1245 }
1245 }
helix-tui/src/buffer.rs+3−3
@@ -322,7 +322,7 @@ impl Buffer {
322 continue;
322 continue;
323 }
323 }
324 // `x_offset + width > max_offset` could be integer overflow on 32-bit machines if we
324 // `x_offset + width > max_offset` could be integer overflow on 32-bit machines if we
325− // change dimenstions to usize or u32 and someone resizes the terminal to 1x2^32.
325+ // change dimensions to usize or u32 and someone resizes the terminal to 1x2^32.
326 if width > max_offset.saturating_sub(x_offset) {
326 if width > max_offset.saturating_sub(x_offset) {
327 break;
327 break;
328 }
328 }
@@ -563,9 +563,9 @@ impl Buffer {
563 let width = self.area.width;
563 let width = self.area.width;
564
564
565 let mut updates: Vec<(u16, u16, &Cell)> = vec![];
565 let mut updates: Vec<(u16, u16, &Cell)> = vec![];
566− // Cells invalidated by drawing/replacing preceeding multi-width characters:
566+ // Cells invalidated by drawing/replacing preceding multi-width characters:
567 let mut invalidated: usize = 0;
567 let mut invalidated: usize = 0;
568− // Cells from the current buffer to skip due to preceeding multi-width characters taking their
568+ // Cells from the current buffer to skip due to preceding multi-width characters taking their
569 // place (the skipped cells should be blank anyway):
569 // place (the skipped cells should be blank anyway):
570 let mut to_skip: usize = 0;
570 let mut to_skip: usize = 0;
571 for (i, (current, previous)) in next_buffer.iter().zip(previous_buffer.iter()).enumerate() {
571 for (i, (current, previous)) in next_buffer.iter().zip(previous_buffer.iter()).enumerate() {
helix-tui/src/widgets/reflow.rs+2−2
@@ -128,7 +128,7 @@ pub struct LineTruncator<'a, 'b> {
128 symbols: &'b mut dyn Iterator<Item = StyledGrapheme<'a>>,
128 symbols: &'b mut dyn Iterator<Item = StyledGrapheme<'a>>,
129 max_line_width: u16,
129 max_line_width: u16,
130 current_line: Vec<StyledGrapheme<'a>>,
130 current_line: Vec<StyledGrapheme<'a>>,
131− /// Record the offet to skip render
131+ /// Record the offset to skip render
132 horizontal_offset: u16,
132 horizontal_offset: u16,
133}
133}
134
134
@@ -439,7 +439,7 @@ mod test {
439 assert_eq!(line_truncator, vec![" "]);
439 assert_eq!(line_truncator, vec![" "]);
440 }
440 }
441
441
442− /// Tests an input starting with a letter, folowed by spaces - some of the behaviour is
442+ /// Tests an input starting with a letter, followed by spaces - some of the behaviour is
443 /// incidental.
443 /// incidental.
444 #[test]
444 #[test]
445 fn line_composer_char_plus_lots_of_spaces() {
445 fn line_composer_char_plus_lots_of_spaces() {
helix-tui/src/widgets/table.rs+2−2
@@ -68,7 +68,7 @@ where
68/// Row::new(vec!["Cell1", "Cell2", "Cell3"]);
68/// Row::new(vec!["Cell1", "Cell2", "Cell3"]);
69/// ```
69/// ```
70///
70///
71−/// But if you need a bit more control over individual cells, you can explicity create [`Cell`]s:
71+/// But if you need a bit more control over individual cells, you can explicitly create [`Cell`]s:
72/// ```rust
72/// ```rust
73/// # use helix_tui::widgets::{Row, Cell};
73/// # use helix_tui::widgets::{Row, Cell};
74/// # use helix_view::graphics::{Style, Color};
74/// # use helix_view::graphics::{Style, Color};
@@ -109,7 +109,7 @@ impl<'a> Row<'a> {
109 self
109 self
110 }
110 }
111
111
112− /// Set the [`Style`] of the entire row. This [`Style`] can be overriden by the [`Style`] of a
112+ /// Set the [`Style`] of the entire row. This [`Style`] can be overridden by the [`Style`] of a
113 /// any individual [`Cell`] or event by their [`Text`] content.
113 /// any individual [`Cell`] or event by their [`Text`] content.
114 pub fn style(mut self, style: Style) -> Self {
114 pub fn style(mut self, style: Style) -> Self {
115 self.style = style;
115 self.style = style;
helix-tui/tests/terminal.rs+4−4
@@ -17,15 +17,15 @@ fn terminal_buffer_size_should_be_limited() {
17// let backend = TestBackend::new(10, 10);
17// let backend = TestBackend::new(10, 10);
18// let mut terminal = Terminal::new(backend)?;
18// let mut terminal = Terminal::new(backend)?;
19// let frame = terminal.draw(|f| {
19// let frame = terminal.draw(|f| {
20−// let paragrah = Paragraph::new("Test");
20+// let paragraph = Paragraph::new("Test");
21−// f.render_widget(paragrah, f.size());
21+// f.render_widget(paragraph, f.size());
22// })?;
22// })?;
23// assert_eq!(frame.buffer.get(0, 0).symbol, "T");
23// assert_eq!(frame.buffer.get(0, 0).symbol, "T");
24// assert_eq!(frame.area, Rect::new(0, 0, 10, 10));
24// assert_eq!(frame.area, Rect::new(0, 0, 10, 10));
25// terminal.backend_mut().resize(8, 8);
25// terminal.backend_mut().resize(8, 8);
26// let frame = terminal.draw(|f| {
26// let frame = terminal.draw(|f| {
27−// let paragrah = Paragraph::new("test");
27+// let paragraph = Paragraph::new("test");
28−// f.render_widget(paragrah, f.size());
28+// f.render_widget(paragraph, f.size());
29// })?;
29// })?;
30// assert_eq!(frame.buffer.get(0, 0).symbol, "t");
30// assert_eq!(frame.buffer.get(0, 0).symbol, "t");
31// assert_eq!(frame.area, Rect::new(0, 0, 8, 8));
31// assert_eq!(frame.area, Rect::new(0, 0, 8, 8));
helix-view/src/document.rs+2−2
@@ -648,7 +648,7 @@ impl Document {
648 .clone()
648 .clone()
649 // Map through changes
649 // Map through changes
650 .map(transaction.changes())
650 .map(transaction.changes())
651− // Ensure all selections accross all views still adhere to invariants.
651+ // Ensure all selections across all views still adhere to invariants.
652 .ensure_invariants(self.text.slice(..));
652 .ensure_invariants(self.text.slice(..));
653 }
653 }
654
654
@@ -752,7 +752,7 @@ impl Document {
752 self.undo_redo_impl(view_id, true)
752 self.undo_redo_impl(view_id, true)
753 }
753 }
754
754
755− /// Redo the last modification to the [`Document`]. Returns whether the redo was sucessful.
755+ /// Redo the last modification to the [`Document`]. Returns whether the redo was successful.
756 pub fn redo(&mut self, view_id: ViewId) -> bool {
756 pub fn redo(&mut self, view_id: ViewId) -> bool {
757 self.undo_redo_impl(view_id, false)
757 self.undo_redo_impl(view_id, false)
758 }
758 }
helix-view/src/view.rs+1−1
@@ -79,7 +79,7 @@ pub struct View {
79 // uses two docs because we want to be able to swap between the
79 // uses two docs because we want to be able to swap between the
80 // two last modified docs which we need to manually keep track of
80 // two last modified docs which we need to manually keep track of
81 pub last_modified_docs: [Option<DocumentId>; 2],
81 pub last_modified_docs: [Option<DocumentId>; 2],
82− /// used to store previous selections of tree-sitter objecs
82+ /// used to store previous selections of tree-sitter objects
83 pub object_selections: Vec<Selection>,
83 pub object_selections: Vec<Selection>,
84 pub gutters: Vec<(Gutter, usize)>,
84 pub gutters: Vec<(Gutter, usize)>,
85}
85}