Fix crash when toggling deleted hunk (#27138)

Release Notes:

- Fix rare crash when toggling deleted hunks.

---------

Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
João Marcos 2025-03-24 16:25:56 -03:00 committed by GitHub
parent 11552cc0bd
commit bbc7fcc54f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 94 additions and 29 deletions

View file

@ -1,5 +1,3 @@
// #![allow(unused, dead_code)]
use crate::branch_picker::{self, BranchList};
use crate::git_panel::{commit_message_editor, GitPanel};
use git::{Commit, GenerateCommitMessage};