Some improvements to the history
part of darcs patch Sun Sep 18 20:27:35 EEST 2005 Eric Knauel <knauel@informatik.uni-tuebingen.de>
This commit is contained in:
parent
d34e8ed07e
commit
d921e332be
|
@ -87,7 +87,10 @@
|
|||
(cond
|
||||
((current-history-item)
|
||||
=> (lambda (entry)
|
||||
(set-history-entry-viewer! (entry-data entry) new-viewer)))
|
||||
(if (not (eq? (history-entry-viewer (entry-data entry))
|
||||
new-viewer))
|
||||
(append-to-history!
|
||||
(make-history-entry #f '() new-viewer)))))
|
||||
(else (values))))
|
||||
|
||||
(define (append-to-history! history-entry)
|
||||
|
@ -680,7 +683,10 @@
|
|||
=> (lambda (entry)
|
||||
(mvwaddstr win 1 2
|
||||
(maybe-shorten-string
|
||||
(history-entry-command (entry-data entry)) width)))))
|
||||
(if (entry-data entry)
|
||||
"user interaction"
|
||||
(history-entry-command (entry-data entry)))
|
||||
width)))))
|
||||
(wrefresh win)))
|
||||
|
||||
;;Cursor
|
||||
|
|
Loading…
Reference in New Issue