mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-14 23:33:52 +01:00
format: remove additional space at suggestion
This commit is contained in:
parent
37a0d94456
commit
2922dbc568
1 changed files with 3 additions and 1 deletions
|
|
@ -7,6 +7,9 @@ pub fn highlight_difference(corrected_command: &str, last_command: &str) -> Stri
|
|||
let split_last_command = last_command.split(' ');
|
||||
|
||||
for new in split_corrected_command {
|
||||
if new == "" {
|
||||
continue;
|
||||
}
|
||||
let mut changed = true;
|
||||
for old in split_last_command.clone() {
|
||||
if new == old {
|
||||
|
|
@ -24,6 +27,5 @@ pub fn highlight_difference(corrected_command: &str, last_command: &str) -> Stri
|
|||
highlighted_command.push(' ');
|
||||
}
|
||||
|
||||
highlighted_command.pop();
|
||||
highlighted_command.trim().to_string()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue