Select one but last element of history to evaluate
Fix call to make-standard-viewer
This commit is contained in:
parent
246660a299
commit
8c9d2b7142
|
@ -224,14 +224,16 @@
|
|||
(refresh-command-window))
|
||||
|
||||
(define (handle-return-key)
|
||||
(let ((command-line (last (buffer-text command-buffer))))
|
||||
(let ((command-line (cadr (reverse (buffer-text command-buffer)))))
|
||||
(cond
|
||||
((string=? command-line "")
|
||||
(values))
|
||||
((command-buffer-in-scheme-mode?)
|
||||
(eval-command-in-scheme-mode command-line))
|
||||
((command-buffer-in-command-mode?)
|
||||
(eval-command-in-command-mode command-line)))))
|
||||
(eval-command-in-command-mode command-line))
|
||||
(else
|
||||
(error "Cannot handle return key" command-line)))))
|
||||
|
||||
(define (find-command-plugin command)
|
||||
(or (find (lambda (p)
|
||||
|
@ -570,7 +572,7 @@
|
|||
((view-plugin-constructor view-plugin)
|
||||
result result-buffer)))
|
||||
(else
|
||||
((make-standard-viewer) result result-buffer))))
|
||||
(make-standard-viewer result result-buffer))))
|
||||
|
||||
;;scroll buffer after one command was entered
|
||||
(define (scroll-command-buffer)
|
||||
|
|
Loading…
Reference in New Issue