small fix to command history

This commit is contained in:
polos 2017-10-12 13:20:40 +02:00
parent 5d78c081e1
commit f78f8d166d

View file

@ -416,9 +416,9 @@
(when (or (zerop len)
(string/= line (aref *history* (1- len))))
(vector-push-extend line *history*)
(setf *history-index* (length *history*)) ; 1 after last
(write-line line out)
(force-output out))))
(force-output out)))
(setf *history-index* (length *history*))) ; 1 after last
(defun history-move (dir)
(unless out
(history-ini))