Closed
Description
Describe the bug
An index out of bounds error occurs when navigating specific file and then blaming it by pressing shift
+ B
.
Steps To Reproduce
Steps to reproduce the behavior:
- Clone
https://codeberg.org/BrunoWallner/apoxel
- Go to commit ID:
312629cb98556f883533fe65faea2387eff2e8ff
(git checkout 312629cb98556f883533fe65faea2387eff2e8ff
) - Run gitui inside the cloned repo
- Press
tab
to go to "Files" header and navigate toapoxel/path/shader/stage_1/chunks.wgsl
- press
shift
+B
keys
Expected behavior
The Blame page should appear but instead the application crashes.
Error output
PanicInfo { payload: Any { .. }, message: Some(index out of bounds: the len is 339 but the index is 339), location: Location { file: "src/popups/blame_file.rs", line: 622, col: 38 }, can_unwind: true, force_no_backtrace: false }
trace:
Context
- OS: Linux archlinux 6.7.8-arch1-1 use watcher instead of polling #1 SMP PREEMPT_DYNAMIC Sun, 03 Mar 2024 00:30:36 +0000 x86_64 GNU/Linux
- Gitui version: gitui 0.25.1 installed via pacman
- Rust version: rustc 1.78.0-nightly (9c3ad802d 2024-03-07) (should not matter)