ossp-pkg/due/.due/due.editor.sh 1.2 -> 1.3
--- due.editor.sh 2004/10/22 19:32:52 1.2
+++ due.editor.sh 2004/10/22 21:17:44 1.3
@@ -32,19 +32,14 @@
# determine best editor
export EDITOR
-set -x
EDITOR=`find_tool vim vi`
if [ ".$EDITOR" = .vim ]; then
alias vi=vim
alias pi='vim "+set patchmode=.orig"'
fi
if [ ".$TERM" != ".$TERM_COLOR" ]; then
- case "$EDITOR" in
- /* ) ;;
- * ) eval "function $EDITOR () { TERM=\$TERM_COLOR command $EDITOR \${1+\"\$@\" }" ;;
- esac
+ eval "function $EDITOR () { TERM=\$TERM_COLOR command $EDITOR \${1+\"\$@\"}; }"
fi
-set +x
# determine best pager
export PAGER
|
|