Handbook
Glossary
com-join-lines ( editor -- )
Vocabulary
ui
.
gadgets
.
editors
Inputs
editor
an
object
Outputs
None
Definition
USING:
accessors
combinators
documents
kernel
sequences
ui.gadgets
ui.gadgets.editors.private
;
IN:
ui.gadgets.editors
:
com-join-lines
( editor -- )
dup
gadget-selection?
[
[
join-lines
]
change-selection
]
[
[
model>>
]
[
editor-caret
first
]
bi
{
{
[
over
last-line#
0
=
]
[
2drop
]
}
{
[
2dup
last-line?
]
[
join-with-prev
]
}
[
join-with-next
]
}
cond
]
if
;