mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-27 14:08:05 +11:00
Fix bugs in ed's U and VE's O/o
U didn't properly handle inserting on the last line and O's bounds checks didn't make sense.
This commit is contained in:
parent
5e01e6405a
commit
74e211eeda
5
blk/109
5
blk/109
@ -1,5 +1,6 @@
|
|||||||
: _U ( U without P, used in VE )
|
: _U ( U without P, used in VE )
|
||||||
15 EDPOS @ 64 / - 0 DO
|
15 EDPOS @ 64 / - ?DUP IF
|
||||||
|
0 DO
|
||||||
14 I - _mvln+
|
14 I - _mvln+
|
||||||
LOOP ;
|
LOOP THEN ;
|
||||||
: U _U P ;
|
: U _U P ;
|
||||||
|
5
blk/130
5
blk/130
@ -8,9 +8,8 @@
|
|||||||
DUP 0x20 >= IF
|
DUP 0x20 >= IF
|
||||||
DUP EMIT EDPOS @ _cpos C! 1 EDPOS +! BLK!! 0
|
DUP EMIT EDPOS @ _cpos C! 1 EDPOS +! BLK!! 0
|
||||||
THEN UNTIL mode! SPC contents ;
|
THEN UNTIL mode! SPC contents ;
|
||||||
: $O EDPOS @ 0x3c0 ( 15 * 64 ) >= IF EXIT THEN
|
: $O _U EDPOS @ 0x3c0 AND DUP pos! _cpos _zbuf BLK!! contents ;
|
||||||
_U EDPOS @ 0x3c0 AND DUP pos! _cpos _zbuf BLK!! contents ;
|
: $o EDPOS @ 0x3c0 < IF EDPOS @ 64 + EDPOS ! $O THEN ;
|
||||||
: $o EDPOS @ 64 < IF EXIT THEN EDPOS @ 64 + EDPOS ! $O ;
|
|
||||||
: $D $H 64 icpy
|
: $D $H 64 icpy
|
||||||
acc@ 0 DO 16 EDPOS @ 64 / DO I _mvln- LOOP LOOP
|
acc@ 0 DO 16 EDPOS @ 64 / DO I _mvln- LOOP LOOP
|
||||||
BLK!! contents ;
|
BLK!! contents ;
|
||||||
|
Loading…
Reference in New Issue
Block a user