The pertinent code in sensible-editor looks like this:
if [ -r ~/.selected_editor ]; then
. ~/.selected_editor
elif [ -z "$EDITOR" ] && [ -z "$SELECTED_EDITOR" ]; then select-editor && . ~/.selected_editor
fi
There's a problem if running select-editor does not write a ~/.selected_editor file. We should handle this by explicitly exiting 0 if it is created, and 1 otherwise in the select-editor utility.
The pertinent code in sensible-editor looks like this:
if [ -r ~/.selected_editor ]; then
select- editor && . ~/.selected_editor
. ~/.selected_editor
elif [ -z "$EDITOR" ] && [ -z "$SELECTED_EDITOR" ]; then
fi
There's a problem if running select-editor does not write a ~/.selected_editor file. We should handle this by explicitly exiting 0 if it is created, and 1 otherwise in the select-editor utility.
Patch attached, requesting sponsorship.
:-Dustin