提交 aa9e564e 编写于 作者: J James Rouzier

Reset the console before opening the editor

上级 a9e9697f
......@@ -117,6 +117,8 @@ func openTextEditor(program, file string) error {
editCmd.WithArg("set ft=gitcommit tw=0 wrap lbr")
}
editCmd.WithArg(file)
// Reattach stdin to the console before opening the editor
resetConsole()
return editCmd.Spawn()
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册