editor
if (editor || lflag || nflag || rflag) {
if (editor && (lflag || nflag)) {
ret = command(editor ? editor : "${FCEDIT:-/bin/ed} $_", 0);
char *p, *editor = NULL;
editor = str_nsave(p, len, ATEMP);
strlcat(editor, " $_", len);
map_set_editor(EditLine *el, wchar_t *editor)
if (wcscmp(editor, L"emacs") == 0) {
if (wcscmp(editor, L"vi") == 0) {
map_get_editor(EditLine *el, const wchar_t **editor)
if (editor == NULL)
*editor = L"emacs";
*editor = L"vi";
char *editor;
if ((editor = getenv("EDITOR")) == NULL)
editor = _PATH_VI;
if (asprintf(&p, "%s %s", editor, filename) == -1)
pw_error(editor, 1, 1);
pw_error(editor, 1, 1);
error = editor(f);
int editor(int);
extern char *editor;
editor = lgetenv("VISUAL");
if (editor == NULL || *editor == '\0') {
editor = lgetenv("EDITOR");
if (editor == NULL || *editor == '\0')
editor = EDIT_PGM;
char *editor;
ap_str(editor);
extern char *editor;
{ "edit", { editor }, I|MSGLIST, 0, MMNORM },
int editor(void *);
const char *editor;
if (el_get(el, EL_EDITOR, &editor) == 0 && editor[0] == 'v')
struct spawn_editor_state *es = wp->editor;
wp->editor = NULL;
const char *editor;
editor = options_get_string(global_options, "editor");
xasprintf(&cmd, "%s %s", editor, path);
wp->editor = es;
struct spawn_editor_state *editor;
struct spawn_editor_state *editor;
if (data->editor != NULL) {
spawn_cancel_editor(data->editor);
if (data->editor == NULL)
pid = spawn_get_editor_pid(data->editor);
if (data->editor == ed->editor) {
data->editor = NULL;
if (data->editor != NULL)
ed->editor = spawn_editor(c, buf, len, window_buffer_edit_close_cb, ed);
if (ed->editor == NULL)
data->editor = ed->editor;
if (data->editor != NULL) {
struct spawn_editor_state *editor;
struct spawn_editor_state *editor;
struct spawn_editor_state *editor;
if (data->editor != NULL) {
spawn_cancel_editor(data->editor);
if (data->editor == ed->editor) {
data->editor = NULL;
if (data->editor != NULL || item == NULL)
ed->editor = spawn_editor(c, buf, len, window_customize_edit_close_cb,
if (ed->editor == NULL)
data->editor = ed->editor;
if (data->editor != NULL) {
if (data->editor == NULL)
pid = spawn_get_editor_pid(data->editor);
if (wp->editor != NULL && (~wp->flags & PANE_STATUSREADY))
rval = editor(gp, argc, argv);
int editor(GS *, int, char *[]);