Skip to content

Commit

Permalink
Fix line number wrapping issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ergrelet committed Feb 19, 2023
1 parent 87f0a1e commit 7f686ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resym/src/resym_app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ impl ResymApp {
.auto_shrink([false, false])
.show(ui, |ui| {
// TODO(ergrelet): see if there's a better way to compute this width.
let line_number_digit_width = self.settings.font_size as u32;
let line_number_digit_width = 2 + self.settings.font_size as u32;
let (num_colums, min_column_width) = if self.settings.print_line_numbers {
match self.current_mode {
ResymAppMode::Comparing(_, _, last_line_number, ..) => {
Expand Down

0 comments on commit 7f686ef

Please sign in to comment.