Comment 2 for bug 238879

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

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.

Patch attached, requesting sponsorship.

:-Dustin