mirror of
https://github.com/gitui-org/gitui
synced 2026-05-24 09:28:21 +00: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
1 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue