Commit Diff


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";