Fix stack effects
parent
e516795a75
commit
c0c9855c26
|
@ -356,7 +356,7 @@ M: editor gadget-text* editor-string % ;
|
||||||
[ drop dup extend-selection dup mark>> click-loc ]
|
[ drop dup extend-selection dup mark>> click-loc ]
|
||||||
[ select-elt ] if ;
|
[ select-elt ] if ;
|
||||||
|
|
||||||
: insert-newline ( editor -- ) "\n" swap user-input* ;
|
: insert-newline ( editor -- ) "\n" swap user-input* drop ;
|
||||||
|
|
||||||
: delete-next-character ( editor -- )
|
: delete-next-character ( editor -- )
|
||||||
T{ char-elt } editor-delete ;
|
T{ char-elt } editor-delete ;
|
||||||
|
|
|
@ -164,7 +164,7 @@ M: interactor dispose drop ;
|
||||||
: handle-interactive ( lines interactor -- quot/f ? )
|
: handle-interactive ( lines interactor -- quot/f ? )
|
||||||
tuck try-parse {
|
tuck try-parse {
|
||||||
{ [ dup quotation? ] [ nip t ] }
|
{ [ dup quotation? ] [ nip t ] }
|
||||||
{ [ dup not ] [ drop "\n" swap user-input* f f ] }
|
{ [ dup not ] [ drop "\n" swap user-input* drop f f ] }
|
||||||
[ handle-parse-error f f ]
|
[ handle-parse-error f f ]
|
||||||
} cond ;
|
} cond ;
|
||||||
|
|
||||||
|
|
|
@ -101,7 +101,7 @@ M: engine-word word-completion-string
|
||||||
|
|
||||||
: insert-word ( word -- )
|
: insert-word ( word -- )
|
||||||
get-workspace listener>> input>>
|
get-workspace listener>> input>>
|
||||||
[ >r word-completion-string r> user-input* ]
|
[ >r word-completion-string r> user-input* drop ]
|
||||||
[ interactor-use use-if-necessary ]
|
[ interactor-use use-if-necessary ]
|
||||||
2bi ;
|
2bi ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue