Skip to content

fix: crash after open_commit_editor on Windows#2933

Open
leno23 wants to merge 1 commit into
gitui-org:masterfrom
leno23:fix/commit-editor-crash-2875
Open

fix: crash after open_commit_editor on Windows#2933
leno23 wants to merge 1 commit into
gitui-org:masterfrom
leno23:fix/commit-editor-crash-2875

Conversation

@leno23
Copy link
Copy Markdown

@leno23 leno23 commented May 17, 2026

Summary

  • Introduces InternalEvent::OpenCommitEditor instead of overloading OpenExternalEditor(None).
  • Keeps the commit popup open while the external editor runs (no hide() before editing).
  • Disables raw mode before launching the external editor and re-enables it afterward, matching terminal cleanup on Windows.

Fixes #2875

Test plan

  • cargo check
  • On Windows: edit commit message via open_commit_editor, then commit successfully
  • Regression: open a file in external editor from status/diff still works

Made with Cursor

Use a dedicated OpenCommitEditor event, keep the commit popup visible,
and disable raw mode while the external editor runs so the terminal is
restored before committing.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crash when commiting after open_commit_editor()

1 participant