Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Jul 31, 2024
1 parent 8dc2ba2 commit d856f7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/egui/src/text_selection/label_text_selection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -618,8 +618,8 @@ fn process_selection_key_events(
}

fn selected_text(galley: &Galley, cursor_range: &CursorRange) -> String {
// This logic means we can select everything in an ellided label (including the `…`)
// and still copy the entire un-ellided text!
// This logic means we can select everything in an elided label (including the `…`)
// and still copy the entire un-elided text!
let everything_is_selected = cursor_range.contains(&CursorRange::select_all(galley));

let copy_everything = cursor_range.is_empty() || everything_is_selected;
Expand Down

0 comments on commit d856f7b

Please sign in to comment.