Commit ca219b00 authored by Chris Dickinson's avatar Chris Dickinson
Browse files

repl: fix for a+ fd clearing the file on read

The second step of augmenting the internal REPL with persistent
history was to re-open the history file with a 'w' handle. This
truncated the file. If a user did not enter a new line before
closing the REPL, their history would be deleted.

PR-URL: https://github.com/iojs/io.js/pull/1605


Reviewed-By: default avatarRoman Reiss <me@silverwind.io>
parent 051d482b
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment