Commit 10992f0
fix #432 bpython-curtsies crashes if no readline history on enter
It actually works correctly if there is no existing history the first time you press enter.
But then insert_into_history sets entries to [] and tries to read from the history file,
which will do nothing if the history file is empty.
History should be fixed properly on master, but for now just fixing the
call which shouldn't have been rl_history.last() in the first place.1 parent 5342649 commit 10992f0
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
374 | | - | |
| 374 | + | |
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
| |||
0 commit comments