From: Mark Wooding Date: Tue, 7 Jul 2009 18:18:47 +0000 (+0100) Subject: mdw-editor: If both VISUAL and EDITOR are set unusually, prefer EDITOR. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/9db17a6585945476ab270ae7ed9d21cea89a60d4?ds=inline mdw-editor: If both VISUAL and EDITOR are set unusually, prefer EDITOR. Previously we did something strange. --- diff --git a/mdw-editor b/mdw-editor index a58ee95..8b6e819 100755 --- a/mdw-editor +++ b/mdw-editor @@ -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 "$@"