small revision
This commit is contained in:
parent
92254383a6
commit
5d78c081e1
1 changed files with 7 additions and 8 deletions
15
lib/gui.lisp
15
lib/gui.lisp
|
|
@ -396,14 +396,13 @@
|
|||
(with-open-file (s *history-file* :direction :input)
|
||||
(x:while-it (read-line s nil nil)
|
||||
(setf (svref tmp (next-index)) x:it)))
|
||||
(next-index)
|
||||
(dotimes (n (min i *max-history*))
|
||||
(x:while (not (svref tmp (index)))
|
||||
(next-index))
|
||||
(vector-push-extend (svref tmp (index))
|
||||
*history*)
|
||||
(next-index))
|
||||
(setf *history-index* (length *history*))))))) ; 1 after last
|
||||
(let ((max (min (1+ i) *max-history*)))
|
||||
(when (< max *max-history*)
|
||||
(setf i -1))
|
||||
(dotimes (n max)
|
||||
(vector-push-extend (svref tmp (next-index))
|
||||
*history*))
|
||||
(setf *history-index* (length *history*)))))))) ; 1 after last
|
||||
|
||||
(let (out)
|
||||
(defun history-ini ()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue