Changeset View
Changeset View
Standalone View
Standalone View
bin/sh/histedit.c
Show First 20 Lines • Show All 136 Lines • ▼ Show 20 Lines | bad: | ||||
INTOFF; | INTOFF; | ||||
el_end(el); | el_end(el); | ||||
el = NULL; | el = NULL; | ||||
INTON; | INTON; | ||||
} | } | ||||
if (el) { | if (el) { | ||||
if (Vflag) | if (Vflag) | ||||
el_set(el, EL_EDITOR, "vi"); | el_set(el, EL_EDITOR, "vi"); | ||||
else if (Eflag) | else if (Eflag) { | ||||
el_set(el, EL_EDITOR, "emacs"); | el_set(el, EL_EDITOR, "emacs"); | ||||
el_set(el, EL_BIND, "^R", "em-inc-search-prev", NULL); | |||||
} | |||||
el_set(el, EL_BIND, "^I", "sh-complete", NULL); | el_set(el, EL_BIND, "^I", "sh-complete", NULL); | ||||
el_source(el, NULL); | el_source(el, NULL); | ||||
} | } | ||||
} else { | } else { | ||||
INTOFF; | INTOFF; | ||||
if (el) { /* no editing if not interactive */ | if (el) { /* no editing if not interactive */ | ||||
el_end(el); | el_end(el); | ||||
el = NULL; | el = NULL; | ||||
▲ Show 20 Lines • Show All 493 Lines • Show Last 20 Lines |