edit: Keep ed.isExternal on SIGINT.

This fixes #85.
This commit is contained in:
Qi Xiao 2016-02-07 04:49:01 +01:00
parent 85e9678911
commit d674cedcac

View File

@ -374,7 +374,10 @@ MainLoop:
switch sig {
case syscall.SIGINT:
// Start over
ed.editorState = editorState{savedTermios: ed.savedTermios}
ed.editorState = editorState{
savedTermios: ed.savedTermios,
isExternal: ed.isExternal,
}
goto MainLoop
case syscall.SIGWINCH:
continue MainLoop