Check for unknwon messages in std-viewer
This commit is contained in:
parent
bfd61dfe44
commit
70fefe9a95
|
@ -149,6 +149,7 @@
|
|||
(define-structure standard-viewer
|
||||
(export make-standard-viewer)
|
||||
(open scheme
|
||||
srfi-23
|
||||
|
||||
tty-debug
|
||||
objects
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
(exp->string value)
|
||||
(result-buffer-num-cols buffer))))
|
||||
(lambda (message)
|
||||
(debug-message "message for make-standard-viewer" message)
|
||||
(cond
|
||||
((eq? message 'paint)
|
||||
(lambda (self win buffer have-focus?)
|
||||
|
@ -15,5 +16,7 @@
|
|||
|
||||
((eq? message 'key-press)
|
||||
(lambda (self . ignore)
|
||||
self))))))
|
||||
self))
|
||||
(else
|
||||
(error "unknwon message in make-standard-viewer" message))))))
|
||||
|
||||
|
|
Loading…
Reference in New Issue