mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-23 23:18:05 +11:00
204a66277e
Which are end-of-word movements.
10 lines
289 B
Plaintext
10 lines
289 B
Plaintext
: $R ( replace mode )
|
|
mode! 'R' EMIT
|
|
BEGIN setpos C< DUP 0xd = NOT IF
|
|
EDPOS @ _cpos C! 1 EDPOS +! BLK!! 0
|
|
THEN UNTIL mode! SPC contents ;
|
|
: handle ( c -- f )
|
|
DUP '0' '9' =><= IF num 0 EXIT THEN
|
|
DUP CMD 2+ C! CMD FIND IF EXECUTE ELSE DROP THEN
|
|
UPPER 'Q' = ;
|