diff options
author | Einhard Leichtfuß <alguien@respiranto.de> | 2019-01-10 08:17:52 +0100 |
---|---|---|
committer | Einhard Leichtfuß <alguien@respiranto.de> | 2019-01-10 08:17:52 +0100 |
commit | 9e34fc04c31fa00f97a889be2d41fb43d44deeb0 (patch) | |
tree | 5f4a59747a5f32b2d0dc397bc05c7915f8045537 /configure.ac | |
parent | 0f8ac72b86937513bf10c3ce21ac445724e9a13a (diff) |
Honor $VISUAL
It does now take precedence over $EDITOR when editing files.
You probably do not want to edit contact entries with ed.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
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], |