diff options
author | rgrimes <rgrimes@FreeBSD.org> | 1995-05-30 00:07:29 +0000 |
---|---|---|
committer | rgrimes <rgrimes@FreeBSD.org> | 1995-05-30 00:07:29 +0000 |
commit | 188803394908f222ab3ed8ec32331eb6dd00fd2d (patch) | |
tree | ac48fd8c79dd9f0b338762a1129b83587ab3a39f /bin/sh/histedit.c | |
parent | 8737971a6da37e8fb1df8b8129813b45db5d6261 (diff) | |
download | FreeBSD-src-188803394908f222ab3ed8ec32331eb6dd00fd2d.zip FreeBSD-src-188803394908f222ab3ed8ec32331eb6dd00fd2d.tar.gz |
Remove trailing whitespace.
Reviewed by: phk
Diffstat (limited to 'bin/sh/histedit.c')
-rw-r--r-- | bin/sh/histedit.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/bin/sh/histedit.c b/bin/sh/histedit.c index b369050..9cf8a23 100644 --- a/bin/sh/histedit.c +++ b/bin/sh/histedit.c @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: histedit.c,v 1.2 1994/09/24 02:57:36 davidg Exp $ + * $Id: histedit.c,v 1.3 1995/05/05 06:34:13 davidg Exp $ */ #ifndef lint @@ -140,7 +140,7 @@ sethistsize() { if (hist != NULL) { cp = lookupvar("HISTSIZE"); - if (cp == NULL || *cp == '\0' || + if (cp == NULL || *cp == '\0' || (histsize = atoi(cp)) < 0) histsize = 100; history(hist, H_EVENT, histsize); @@ -172,7 +172,7 @@ histcmd(argc, argv) if (hist == NULL) error("history not active"); - + if (argc == 1) error("missing history argument"); @@ -245,7 +245,7 @@ histcmd(argc, argv) /* * If executing, parse [old=new] now */ - if (lflg == 0 && argc > 0 && + if (lflg == 0 && argc > 0 && ((repl = strchr(argv[0], '=')) != NULL)) { pat = argv[0]; *repl++ = '\0'; @@ -283,7 +283,7 @@ histcmd(argc, argv) } /* * XXX - this should not depend on the event numbers - * always increasing. Add sequence numbers or offset + * always increasing. Add sequence numbers or offset * to the history element in next (diskbased) release. */ direction = first < last ? H_PREV : H_NEXT; @@ -319,7 +319,7 @@ histcmd(argc, argv) out1fmt("%5d ", he->num); out1str(he->str); } else { - char *s = pat ? + char *s = pat ? fc_replace(he->str, pat, repl) : (char *)he->str; if (sflg) { @@ -329,7 +329,7 @@ histcmd(argc, argv) evalstring(s); if (displayhist && hist) { /* - * XXX what about recursive and + * XXX what about recursive and * relative histnums. */ history(hist, H_ENTER, s); @@ -355,7 +355,7 @@ histcmd(argc, argv) readcmdfile(editfile); /* XXX - should read back - quick tst */ unlink(editfile); } - + if (lflg == 0 && active > 0) --active; if (displayhist) @@ -438,7 +438,7 @@ str_to_event(str, last) str); } else { /* - * pattern + * pattern */ he = history(hist, H_PREV_STR, str); if (he == NULL) |