about summary refs log tree commit homepage
path: root/bin/dtas-cueedit
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-08-25 06:23:50 +0000
committerEric Wong <normalperson@yhbt.net>2013-08-25 06:23:50 +0000
commit27ced8f3b631e16930a5ff56bec0a12467bf5206 (patch)
treec3fa9c8431c3b6ed53470962876554903e8d41d0 /bin/dtas-cueedit
parent3fb233fd768f3dbce2a3073ba596458871cec93e (diff)
downloaddtas-27ced8f3b631e16930a5ff56bec0a12467bf5206.tar.gz
Oops, not everybody has their VISUAL or EDITOR environment set.
Diffstat (limited to 'bin/dtas-cueedit')
-rwxr-xr-xbin/dtas-cueedit2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/dtas-cueedit b/bin/dtas-cueedit
index 2a205ac..3c03a78 100755
--- a/bin/dtas-cueedit
+++ b/bin/dtas-cueedit
@@ -5,7 +5,7 @@
 require 'tempfile'
 require 'shellwords'
 usage = "Usage: #$0 FILENAME"
-editor = ENV["VISUAL"] || ENV["EDITOR"]
+editor = ENV["VISUAL"] || ENV["EDITOR"] || "vi"
 ARGV.size > 0 or abort usage
 
 def err_msg(cmd, status)