diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-08-09 06:51:27 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-08-09 06:51:27 -0700 |
commit | dd98afd93d69892573b640645838e549c3102d2c (patch) | |
tree | 4957f4dc9153146013106cfdae1402687aa6285e /parser.c | |
parent | d000bc7a8bcbc0c3588c2a31a3b08e43b4dcbf5b (diff) | |
download | txr-dd98afd93d69892573b640645838e549c3102d2c.tar.gz txr-dd98afd93d69892573b640645838e549c3102d2c.tar.bz2 txr-dd98afd93d69892573b640645838e549c3102d2c.zip |
listener: bug: history ignored if .txr_profile doesn't exist.
* parser.c (repl): Fix code wrongly checking for the existence
of the .txr_profile file as a condition for loading .txr_history.
It should of course be checking for .txr_history.
Diffstat (limited to 'parser.c')
-rw-r--r-- | parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1616,7 +1616,7 @@ val repl(val bindings, val in_stream, val out_stream, val env) lino_hist_set_max_len(ls, c_num(cdr(hist_len_var), self)); - if (histfile_w && funcall1(pexist_s, rcfile)) { + if (histfile_w && funcall1(pexist_s, histfile)) { if (!funcall1(psafe_s, home)) { report_path_perm_problem(home); } else if (!funcall1(ppriv_s, histfile)) { |