Skip to content

Commit 8d4ae43

Browse files
committed
Fixed bug where no is defined ... default to vi
1 parent b4f7cda commit 8d4ae43

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

notes

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ GPGKEY=''
1818
GPG_OPTS="--quiet --yes --compress-algo=none --no-encrypt-to"
1919
GPG="gpg"
2020
SHREDCMD="rm"
21+
EDITOR="${EDITOR:-vi}"
2122
#SHREDCMD="shred"
2223

2324
#
@@ -389,7 +390,7 @@ cmd_find () {
389390

390391
cmd_insert () {
391392
theoptions="$@"
392-
myoptions="${theoptions// /_}"
393+
myoptions="`echo ${theoptions} | tr ' ' '_'`"
393394
case $PROGRAM in
394395
"notes") echo my options = ${myoptions} ; note_add $myoptions;;
395396
"notebook") notebook_add $myoptions;;

0 commit comments

Comments
 (0)