1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 21:30:03 -04:00

Check for typos on CI (#2918)

* Check for typos on CI

* Fix all typos
This commit is contained in:
Emil Ernerfeldt
2023-04-18 16:10:20 +02:00
committed by GitHub
parent 77df9cb982
commit 4809747952
22 changed files with 60 additions and 33 deletions

View File

@@ -70,7 +70,7 @@ pub fn layout(fonts: &mut FontsImpl, job: Arc<LayoutJob>) -> Galley {
for (i, row) in rows.iter_mut().enumerate() {
let is_last_row = i + 1 == num_rows;
let justify_row = justify && !row.ends_with_newline && !is_last_row;
halign_and_jusitfy_row(
halign_and_justify_row(
point_scale,
row,
job.halign,
@@ -337,7 +337,7 @@ fn replace_last_glyph_with_overflow_character(
}
}
fn halign_and_jusitfy_row(
fn halign_and_justify_row(
point_scale: PointScale,
row: &mut Row,
halign: Align,

View File

@@ -850,7 +850,7 @@ impl Galley {
// keep same X coord
let x = self.pos_from_cursor(cursor).center().x;
let column = if x > self.rows[new_row].rect.right() {
// beyond the end of this row - keep same colum
// beyond the end of this row - keep same column
cursor.rcursor.column
} else {
self.rows[new_row].char_at(x)