gitui-org / gitui-org/gitui

Crash when commiting after `open_commit_editor()`

Open
#2,875 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
22.5k
Forks
773
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
After I edit some files using `open_commit_editor` and commit the file, `gitui` is crashed
If I edit message in native commit box intead of `open_commit_editor()`, the commit successed.
But It crashed always after I edit some file using `open_commit_editor`

**To Reproduce**
Steps to reproduce the behavior:
1. edit file in unstaged changes box
2. Press `open_commit`
3. Press `open_commit_editor` shortcut and edit additionally
4. close editor
5. Press `commit` shorcut
6. gitui is crashed and return to terminal

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Context (please complete the following information):**
- Windows 10 Pro 22H2
- 0.28.0 (5527160)

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.