diff options
| author | Mike Smith <msmith@FreeBSD.org> | 1997-11-07 02:34:50 +0000 |
|---|---|---|
| committer | Mike Smith <msmith@FreeBSD.org> | 1997-11-07 02:34:50 +0000 |
| commit | e7c818b53b84e3fcf1753ded7871b9beb20c5692 (patch) | |
| tree | eb9198434e81c35e045c10e80f043de32dfa1299 /sys | |
| parent | 19a41f3ab7f1ce5beaa5792d57d60011cf7a6993 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/ddb/db_input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ddb/db_input.c b/sys/ddb/db_input.c index 8b91cc14fb165..888aa83946df4 100644 --- a/sys/ddb/db_input.c +++ b/sys/ddb/db_input.c @@ -23,7 +23,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: db_input.c,v 1.18 1997/04/12 17:35:02 joerg Exp $ + * $Id: db_input.c,v 1.19 1997/08/17 21:21:50 joerg Exp $ */ /* @@ -337,7 +337,7 @@ db_readline(lstart, lsize) db_printf("\n"); /* synch output position */ *db_le = 0; - if (db_le - db_lbuf_start > 1) { + if (db_lhistory && (db_le - db_lbuf_start > 1)) { /* Maintain input line history for non-empty lines. */ if (++db_lhistidx == DB_LHIST_NLINES) { /* Rotate history. */ |
