commit 8ef77ce4c8eca6504bdfc5f7661e285fa44cedd4 from: Omar Polo date: Mon Jun 10 20:41:35 2024 UTC fix logic error in editor selection use ed only when both VISUAL and EDITOR are undefined, not with one is defined and the other don't. commit - d25087765ffb80fd8304efc3f1346fdb69861c7a commit + 8ef77ce4c8eca6504bdfc5f7661e285fa44cedd4 blob - 7ffc4801c3f0d75961f0597e18289164fe3aeb19 blob + 20496dbd49dd7f397902747b25b89ab3dc531de9 --- ui.c +++ ui.c @@ -1439,7 +1439,7 @@ ui_edit_externally(void) (void) write(fd, ministate.buf, strlen(ministate.buf)); close(fd); - if ((editor = getenv("VISUAL")) == NULL || + if ((editor = getenv("VISUAL")) == NULL && (editor = getenv("EDITOR")) == NULL) editor = "ed";