diff options
Diffstat (limited to 'edit-editline.c')
| -rw-r--r-- | edit-editline.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/edit-editline.c b/edit-editline.c index 2069aef..827a42e 100644 --- a/edit-editline.c +++ b/edit-editline.c @@ -17,11 +17,11 @@ void *edit_begin(int fd) { List *hist; struct cookie *c; - hist = varlookup("history"); - if (hist != NULL) - if (read_history(hist->w) != 0 && + hist = varlookup("history"); + if (hist != NULL) + if (read_history(hist->w) != 0 && errno != ENOENT) /* ignore if missing */ - uerror(hist->w); + uerror(hist->w); c = ealloc(sizeof *c); c->buffer = NULL; |