From 9e34fc04c31fa00f97a889be2d41fb43d44deeb0 Mon Sep 17 00:00:00 2001 From: Einhard Leichtfuß Date: Thu, 10 Jan 2019 08:17:52 +0100 Subject: Honor $VISUAL It does now take precedence over $EDITOR when editing files. You probably do not want to edit contact entries with ed. --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 1c99b13..4390787 100644 --- a/configure.ac +++ b/configure.ac @@ -76,7 +76,8 @@ AC_SUBST([default_user_config_file], ['$HOME/.config/ctct_config']) AC_ARG_VAR([default_datadir], ['directory to store contact data in']) test -z "$default_datadir" && default_datadir='$HOME/.ctct' -AC_ARG_VAR([default_fallback_editor], ['editor to use if EDITOR is unset']) +AC_ARG_VAR([default_fallback_editor], + ['editor to use if both $VISUAL AND $EDITOR are unset']) test -z "$default_fallback_editor" && default_fallback_editor=vi AC_ARG_VAR([default_input_program], -- cgit v1.2.3