aboutsummaryrefslogtreecommitdiff
path: root/alacritty/src/display
diff options
context:
space:
mode:
Diffstat (limited to 'alacritty/src/display')
-rw-r--r--alacritty/src/display/content.rs2
-rw-r--r--alacritty/src/display/hint.rs4
-rw-r--r--alacritty/src/display/mod.rs6
3 files changed, 6 insertions, 6 deletions
diff --git a/alacritty/src/display/content.rs b/alacritty/src/display/content.rs
index 0849b30a..ba716154 100644
--- a/alacritty/src/display/content.rs
+++ b/alacritty/src/display/content.rs
@@ -510,7 +510,7 @@ impl<'a> HintMatches<'a> {
Self { matches: matches.into(), index: 0 }
}
- /// Create from regex matches on term visable part.
+ /// Create from regex matches on term visible part.
fn visible_regex_matches<T>(term: &Term<T>, dfas: &mut RegexSearch) -> Self {
let matches = hint::visible_regex_match_iter(term, dfas).collect::<Vec<_>>();
Self::new(matches)
diff --git a/alacritty/src/display/hint.rs b/alacritty/src/display/hint.rs
index 8dffdeb5..f508d10c 100644
--- a/alacritty/src/display/hint.rs
+++ b/alacritty/src/display/hint.rs
@@ -413,7 +413,7 @@ fn hyperlink_at<T>(term: &Term<T>, point: Point) -> Option<(Hyperlink, Match)> {
// Find adjacent lines that have the same `hyperlink`. The end purpose to highlight hyperlinks
// that span across multiple lines or not directly attached to each other.
- // Find the closest to the viewport start adjucent line.
+ // Find the closest to the viewport start adjacent line.
while match_start.line > viewport_start {
let next_line = match_start.line - 1i32;
// Iterate over all the cells in the grid's line and check if any of those cells contains
@@ -697,7 +697,7 @@ mod tests {
let term = mock_term(&content);
let mut regex = RegexSearch::new("match!").unwrap();
- // The interator should match everything in the viewport.
+ // The iterator should match everything in the viewport.
assert_eq!(visible_regex_match_iter(&term, &mut regex).count(), 4096);
}
}
diff --git a/alacritty/src/display/mod.rs b/alacritty/src/display/mod.rs
index 2b5cc348..efd41c04 100644
--- a/alacritty/src/display/mod.rs
+++ b/alacritty/src/display/mod.rs
@@ -587,7 +587,7 @@ impl Display {
}
// XXX: this function must not call to any `OpenGL` related tasks. Renderer updates are
- // performed in [`Self::process_renderer_update`] right befor drawing.
+ // performed in [`Self::process_renderer_update`] right before drawing.
//
/// Process update events.
pub fn handle_update<T>(
@@ -1378,7 +1378,7 @@ impl Display {
}
}
- /// Requst a new frame for a window on Wayland.
+ /// Request a new frame for a window on Wayland.
fn request_frame(&mut self, scheduler: &mut Scheduler) {
// Mark that we've used a frame.
self.window.has_frame = false;
@@ -1408,7 +1408,7 @@ impl Display {
impl Drop for Display {
fn drop(&mut self) {
// Switch OpenGL context before dropping, otherwise objects (like programs) from other
- // contexts might be deleted during droping renderer.
+ // contexts might be deleted when dropping renderer.
self.make_current();
unsafe {
ManuallyDrop::drop(&mut self.renderer);