mdw-editor: If both VISUAL and EDITOR are set unusually, prefer EDITOR.
[profile] / mdw-editor
index a58ee95..8b6e819 100755 (executable)
@@ -6,7 +6,7 @@ editor=${MDW_EDITOR-ed}
 case "$EDITOR,$VISUAL,$TERM" in
   mdw-editor,mdw-editor,dumb) editor=gnuclient;;
   mdw-editor,mdw-editor,*);;
-  *,mdw-editor,*) editor=$EDITOR;;
   mdw-editor,*,*) editor=$VISUAL;;
+  *,*,*) editor=$EDITOR;;
 esac
 exec $editor "$@"