From 9db17a6585945476ab270ae7ed9d21cea89a60d4 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Tue, 7 Jul 2009 19:18:47 +0100 Subject: [PATCH] mdw-editor: If both VISUAL and EDITOR are set unusually, prefer EDITOR. Previously we did something strange. --- mdw-editor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 "$@" -- 2.11.0