mirror of
https://github.com/extrawurst/gitui.git
synced 2024-12-26 10:33:25 +03:00
fix: index out of bounds when blaming a file ending with a blank line (#2130)
This commit is contained in:
parent
baddec0e39
commit
99b9a38fb3
@ -572,7 +572,8 @@ impl BlameFilePopup {
|
||||
.iter()
|
||||
.map(|l| l.1.clone())
|
||||
.collect::<Vec<_>>();
|
||||
let text = tabs_to_spaces(raw_lines.join("\n"));
|
||||
let mut text = tabs_to_spaces(raw_lines.join("\n"));
|
||||
text.push('\n');
|
||||
|
||||
job.spawn(AsyncSyntaxJob::new(
|
||||
text,
|
||||
|
Loading…
Reference in New Issue
Block a user