Fix repainting if buffer focus switches
This commit is contained in:
parent
c4ef6ed09d
commit
7dd48a3e47
|
@ -113,7 +113,6 @@
|
|||
;;miscelaneous state
|
||||
;;-------------------
|
||||
|
||||
;;1....upper;2....lower
|
||||
(define *focus-buffer* 'command-buffer)
|
||||
|
||||
(define (focus-on-command-buffer?)
|
||||
|
@ -307,14 +306,16 @@
|
|||
((= ch 111)
|
||||
(begin
|
||||
(if (focus-on-command-buffer?)
|
||||
(begin
|
||||
(let ((key-message
|
||||
(make-key-pressed-message active-command
|
||||
current-result-object
|
||||
97)))
|
||||
(focus-result-buffer!)
|
||||
(let ((key-message
|
||||
(make-key-pressed-message active-command
|
||||
current-result-object
|
||||
97)))
|
||||
(set! current-result-object (switch key-message))))
|
||||
(focus-command-buffer!))
|
||||
(set! current-result-object (switch key-message))
|
||||
(paint-result-window))
|
||||
(begin
|
||||
(focus-command-buffer!)
|
||||
(paint-command-window-contents)))
|
||||
(set! c-x-pressed #f)
|
||||
(loop (wait-for-input))))
|
||||
|
||||
|
|
Loading…
Reference in New Issue