diff options
author | Pavel Roskin <1317472+proski@users.noreply.github.com> | 2023-10-25 16:20:58 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-25 23:20:58 +0000 |
commit | 75eef3be9680dbe3300186b06e19eac7f9dfab4b (patch) | |
tree | e59127474f8bdaae5be26dc53d25c3c9ed86d379 /alacritty_terminal | |
parent | 500b696ca8ed61c42f5954b10f1294e875d792ae (diff) | |
download | alacritty-75eef3be9680dbe3300186b06e19eac7f9dfab4b.tar.gz alacritty-75eef3be9680dbe3300186b06e19eac7f9dfab4b.zip |
Fix typos
Diffstat (limited to 'alacritty_terminal')
-rw-r--r-- | alacritty_terminal/src/config/mod.rs | 2 | ||||
-rw-r--r-- | alacritty_terminal/src/event.rs | 4 | ||||
-rw-r--r-- | alacritty_terminal/src/grid/mod.rs | 4 | ||||
-rw-r--r-- | alacritty_terminal/src/grid/storage.rs | 4 | ||||
-rw-r--r-- | alacritty_terminal/src/term/cell.rs | 2 | ||||
-rw-r--r-- | alacritty_terminal/src/term/mod.rs | 2 |
6 files changed, 9 insertions, 9 deletions
diff --git a/alacritty_terminal/src/config/mod.rs b/alacritty_terminal/src/config/mod.rs index e70389ec..d713e67b 100644 --- a/alacritty_terminal/src/config/mod.rs +++ b/alacritty_terminal/src/config/mod.rs @@ -50,7 +50,7 @@ pub enum Osc52 { Disabled, /// Only copy sequence is accepted. /// - /// This option is the default as a compromiss between entirely + /// This option is the default as a compromise between entirely /// disabling it (the most secure) and allowing `paste` (the less secure). #[default] OnlyCopy, diff --git a/alacritty_terminal/src/event.rs b/alacritty_terminal/src/event.rs index 4e1d9ec4..5849eb1e 100644 --- a/alacritty_terminal/src/event.rs +++ b/alacritty_terminal/src/event.rs @@ -25,13 +25,13 @@ pub enum Event { /// Request to write the contents of the clipboard to the PTY. /// - /// The attached function is a formatter which will corectly transform the clipboard content + /// The attached function is a formatter which will correctly transform the clipboard content /// into the expected escape sequence format. ClipboardLoad(ClipboardType, Arc<dyn Fn(&str) -> String + Sync + Send + 'static>), /// Request to write the RGB value of a color to the PTY. /// - /// The attached function is a formatter which will corectly transform the RGB color into the + /// The attached function is a formatter which will correctly transform the RGB color into the /// expected escape sequence format. ColorRequest(usize, Arc<dyn Fn(Rgb) -> String + Sync + Send + 'static>), diff --git a/alacritty_terminal/src/grid/mod.rs b/alacritty_terminal/src/grid/mod.rs index b42c5075..232201ec 100644 --- a/alacritty_terminal/src/grid/mod.rs +++ b/alacritty_terminal/src/grid/mod.rs @@ -568,12 +568,12 @@ pub struct GridIterator<'a, T> { } impl<'a, T> GridIterator<'a, T> { - /// Current iteratior position. + /// Current iterator position. pub fn point(&self) -> Point { self.point } - /// Cell at the current iteratior position. + /// Cell at the current iterator position. pub fn cell(&self) -> &'a T { &self.grid[self.point] } diff --git a/alacritty_terminal/src/grid/storage.rs b/alacritty_terminal/src/grid/storage.rs index e444d9c3..8e270d2d 100644 --- a/alacritty_terminal/src/grid/storage.rs +++ b/alacritty_terminal/src/grid/storage.rs @@ -80,10 +80,10 @@ impl<T> Storage<T> { T: Clone + Default, { // Number of lines the buffer needs to grow. - let growage = next - self.visible_lines; + let additional_lines = next - self.visible_lines; let columns = self[Line(0)].len(); - self.initialize(growage, columns); + self.initialize(additional_lines, columns); // Update visible lines. self.visible_lines = next; diff --git a/alacritty_terminal/src/term/cell.rs b/alacritty_terminal/src/term/cell.rs index ddf6a745..927687fb 100644 --- a/alacritty_terminal/src/term/cell.rs +++ b/alacritty_terminal/src/term/cell.rs @@ -298,7 +298,7 @@ mod tests { // Expected cell size on 64-bit architectures. const EXPECTED_CELL_SIZE: usize = 24; - // Ensure that cell size isn't growning by accident. + // Ensure that cell size isn't growing by accident. assert!(mem::size_of::<Cell>() <= EXPECTED_CELL_SIZE); } diff --git a/alacritty_terminal/src/term/mod.rs b/alacritty_terminal/src/term/mod.rs index fd537122..46a94f17 100644 --- a/alacritty_terminal/src/term/mod.rs +++ b/alacritty_terminal/src/term/mod.rs @@ -402,7 +402,7 @@ impl<T> Term<T> { // Add information about old cursor position and new one if they are not the same, so we // cover everything that was produced by `Term::input`. if self.damage.last_cursor != previous_cursor { - // Cursor cooridanates are always inside viewport even if you have `display_offset`. + // Cursor coordinates are always inside viewport even if you have `display_offset`. let point = Point::new(previous_cursor.line.0 as usize, previous_cursor.column); self.damage.damage_point(point); } |