Skip to content

Commit

Permalink
Update text_buffer.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored Jan 22, 2024
1 parent 8b464f5 commit 329f5eb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/egui/src/widgets/text_edit/text_buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,7 @@ pub trait TextBuffer {
ccursor.index,
);
let tab_size_gap = (current_column - 1) % tab_size;
let add_space_size = match tab_size_gap < tab_size {
true => tab_size - tab_size_gap,
false => tab_size,
};
let add_space_size = tab_size - tab_size_gap;

text_to_insert = " ".repeat(add_space_size);
}
Expand Down

0 comments on commit 329f5eb

Please sign in to comment.