summaryrefslogtreecommitdiff
path: root/doInteract.go
diff options
context:
space:
mode:
Diffstat (limited to 'doInteract.go')
-rw-r--r--doInteract.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/doInteract.go b/doInteract.go
index f5b7cea..82de3d1 100644
--- a/doInteract.go
+++ b/doInteract.go
@@ -66,7 +66,8 @@ func doEditorOnce() (string, error) {
}
// Run the editor
- cmd := exec.Command("bash", "-i", "-c", editor+" "+tmpPath)
+ bashcmd := editor + " " + tmpPath + ";exit"
+ cmd := exec.Command("bash", "-i", "-c", bashcmd)
cmd.Stdin = os.Stdin
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr