e7a6c777c7
The indicator is going to be empty most of the time and will be emitted by the mode changer directly. That's going to the upper-right corner and the status bar avoids emitting in that area.
12 lines
416 B
Plaintext
12 lines
416 B
Plaintext
: $w EDPOS @ BLK( + acc@ 0 DO
|
|
BEGIN C@+ WS? UNTIL BEGIN C@+ WS? NOT UNTIL LOOP
|
|
1- BLK( - 1023 MIN EDPOS ! ;
|
|
: $W EDPOS @ BLK( + acc@ 0 DO
|
|
BEGIN C@- WS? UNTIL BEGIN C@- WS? NOT UNTIL LOOP
|
|
1+ BLK( - DUP 0< IF DROP 0 THEN EDPOS ! ;
|
|
: handleM ( c -- f )
|
|
DUP '0' '9' =><= IF num 0 EXIT THEN
|
|
DUP CMD 2+ C! CMD FIND IF EXECUTE ELSE DROP THEN
|
|
UPPER 'Q' = ;
|
|
: modeM ['] handleM MODE ! mode! SPC ;
|