summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-22 05:33:05 -0500
committerJeff Carr <[email protected]>2025-10-22 05:33:05 -0500
commitd077a5848cd88bcded8863d3344689d649ea158f (patch)
treec96ebe1ea969d621e699e71de8a48ffd1848e968
parent5e7f902d5fae4014b8eef8c4945cbc131c6f701e (diff)
spawn vim correctlyv0.0.31
-rw-r--r--argv.template.go3
-rw-r--r--doInteract.go2
2 files changed, 3 insertions, 2 deletions
diff --git a/argv.template.go b/argv.template.go
index e7a9948..1808722 100644
--- a/argv.template.go
+++ b/argv.template.go
@@ -10,6 +10,7 @@ import (
"go.wit.com/dev/alexflint/arg"
"go.wit.com/gui"
+ "go.wit.com/lib/ENV"
"go.wit.com/lib/fhelp"
"go.wit.com/log"
)
@@ -63,7 +64,7 @@ func (args) InitGui() error {
func (args) Exit() {
gui.UnloadToolkits()
- if me.argv.Verbose() {
+ if ENV.Verbose() {
log.Info("argv.Exit() called", APPNAME+".Exit()")
}
// remove this from the template for your app (or make one for youself if you need it)
diff --git a/doInteract.go b/doInteract.go
index f99b3d9..53830a1 100644
--- a/doInteract.go
+++ b/doInteract.go
@@ -64,7 +64,7 @@ func doEditorOnce() (string, error) {
}
// Run the editor
- cmd := exec.Command(editor, tmpPath)
+ cmd := exec.Command("bash", "-i", "-c", editor+" "+tmpPath)
cmd.Stdin = os.Stdin
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr