Revert "ui.tools.listener: removing unnecessary spawn."
This reverts commit f8aa8038d3
.
Breaks error handling: http://paste.factorcode.org/paste?id=2407
db4
parent
a248fc28a8
commit
a1bb1fbd7a
|
@ -270,7 +270,9 @@ M: string listener-input
|
||||||
[ set-editor-string ] [ request-focus ] bi ;
|
[ set-editor-string ] [ request-focus ] bi ;
|
||||||
|
|
||||||
: call-listener ( quot command -- )
|
: call-listener ( quot command -- )
|
||||||
get-ready-listener dup wait-for-listener (call-listener) ;
|
get-ready-listener
|
||||||
|
'[ _ _ _ dup wait-for-listener (call-listener) ]
|
||||||
|
"Listener call" spawn drop ;
|
||||||
|
|
||||||
M: listener-command invoke-command ( target command -- )
|
M: listener-command invoke-command ( target command -- )
|
||||||
[ command-quot ] [ nip ] 2bi call-listener ;
|
[ command-quot ] [ nip ] 2bi call-listener ;
|
||||||
|
|
Loading…
Reference in New Issue