VE: make D copy first deleted line to IBUF

This commit is contained in:
Virgil Dupras 2020-06-10 16:59:12 -04:00
parent 6a6c59300e
commit 8f0e51a21c
2 changed files with 4 additions and 3 deletions

View File

@ -11,6 +11,6 @@ Block Editor (B100). Refer to documentation there.
'o' inserts a blank line after the cursor. 'O', before.
'D' deletes "modifier" lines at the cursor.
'D' deletes "modifier" lines at the cursor. The first of those
lines is copied to IBUF.
(cont.)

View File

@ -10,5 +10,6 @@
: $O EDPOS @ 0x3c0 ( 15 * 64 ) >= IF EXIT THEN
_U EDPOS @ 0x3c0 AND DUP pos! _cpos _zbuf BLK!! contents ;
: $o EDPOS @ 64 < IF EXIT THEN EDPOS @ 64 + EDPOS ! $O ;
: $D acc@ 0 DO 16 EDPOS @ 64 / DO i _mvln- LOOP LOOP
: $D $H 64 icpy
acc@ 0 DO 16 EDPOS @ 64 / DO i _mvln- LOOP LOOP
BLK!! contents ;