diff options
| author | lukem <lukem@NetBSD.org> | 1998-07-29 02:26:00 +0000 |
|---|---|---|
| committer | lukem <lukem@NetBSD.org> | 1998-07-29 02:26:00 +0000 |
| commit | f87d2504049ca18528a5eaa005c5a12eb11c9142 (patch) | |
| tree | ac06718fb361bcc07c9e048034ff495514382794 /lib/libedit/parse.c | |
| parent | bbc3c4bf2a37cd98813c0a1383da2af5c2278046 (diff) | |
* add more checks for NULL pointers in passed arguments
* implement el_get(EditLine *, int op, void *result), which does the
inverse of el_set()
* add EL_EDITMODE operation to el_set and el_get; if non zero editing
is enabled (the default).
* add "edit on | off" editrc command, which modifies EL_EDITMODE.
users can now add '*:edit off' in ~/.editrc as an advisory to
disable editing.
NOTE: at this time EL_EDITMODE is just an indication of the
state of the 'edit' command. It's up to the application to check
this after el_source() or el_parse() to determine if editing is still
required.
Diffstat (limited to 'lib/libedit/parse.c')
| -rw-r--r-- | lib/libedit/parse.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libedit/parse.c b/lib/libedit/parse.c index 83f81c725ee..72f15d59bd6 100644 --- a/lib/libedit/parse.c +++ b/lib/libedit/parse.c @@ -1,4 +1,4 @@ -/* $NetBSD: parse.c,v 1.7 1998/01/21 11:12:35 lukem Exp $ */ +/* $NetBSD: parse.c,v 1.8 1998/07/29 02:26:01 lukem Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)parse.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: parse.c,v 1.7 1998/01/21 11:12:35 lukem Exp $"); +__RCSID("$NetBSD: parse.c,v 1.8 1998/07/29 02:26:01 lukem Exp $"); #endif #endif /* not lint && not SCCSID */ @@ -52,6 +52,7 @@ __RCSID("$NetBSD: parse.c,v 1.7 1998/01/21 11:12:35 lukem Exp $"); * * bind * echotc + * edit * gettc * history * settc @@ -67,6 +68,7 @@ private struct { } cmds[] = { { "bind", map_bind }, { "echotc", term_echotc }, + { "edit", el_editmode }, { "history", hist_list }, { "telltc", term_telltc }, { "settc", term_settc }, |
