summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-11-02 06:18:40 -0700
committerKaz Kylheku <kaz@kylheku.com>2018-11-02 06:18:40 -0700
commita836c24de4d2488c4740c1143f252bc086a5ffbe (patch)
treed078a14acd4236619c2a53d16f1ff8153ee5d62c /lib.c
parent1cf6c607eb35525d2329651e1d75f21b3a8e82b2 (diff)
downloadtxr-a836c24de4d2488c4740c1143f252bc086a5ffbe.tar.gz
txr-a836c24de4d2488c4740c1143f252bc086a5ffbe.tar.bz2
txr-a836c24de4d2488c4740c1143f252bc086a5ffbe.zip
listener: use temp file when saving history.
We don't want ot overwrite the history file in-place; if something goes wrong, we will lose half of it. * parser.c (repl): Save the history to a .tmp file, and then rename that to the target name, if the write is successful.
Diffstat (limited to 'lib.c')
0 files changed, 0 insertions, 0 deletions