Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
editor: save and reset terminal after calling EDITOR
When EDITOR is invoked to modify a commit message, it will likely change the terminal settings, and if it misbehaves will leave the terminal output damaged as shown in a recent report from Windows Terminal[1] Instead use the functions provided by compat/terminal to save the settings and recover safely. [1] microsoft/terminal#9359 Signed-off-by: Carlo Marcelo Arenas Belón <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
- Loading branch information