Home | History | Annotate | Download | only in sdiff

Lines Matching defs:editor

25  * Takes the name of a file and opens it with an editor.
32 const char *editor;
34 editor = getenv("VISUAL");
35 if (editor == NULL)
36 editor = getenv("EDITOR");
37 if (editor == NULL)
38 editor = "vi";
40 /* Start editor on temporary file. */
44 execlp(editor, editor, filename, (void *)NULL);
45 warn("could not execute editor: %s", editor);
53 /* Wait for editor to exit. */
59 /* Check that editor terminated normally. */
61 warn("%s terminated abnormally", editor);