lkfclose(ib, ctxpath);
}
+ /* Set editor */
+ if (!(cp = getenv("MMHEDITOR")) || !*cp) {
+ if (!(cp = context_find("editor")) || !*cp) {
+ if (!(cp = getenv("VISUAL")) || !*cp) {
+ if (!(cp = getenv("EDITOR")) || !*cp) {
+ cp = defaulteditor;
+ }
+ }
+ }
+ }
+ defaulteditor = cp;
+
/* Set pager */
if (!(cp = getenv("MMHPAGER")) || !*cp) {
if (!(cp = context_find("pager")) || !*cp) {