Optimized delete

This commit is contained in:
Devine Lu Linvega 2024-05-30 09:22:57 -07:00
parent 18f339995e
commit dd4775eb64
1 changed files with 5 additions and 4 deletions

View File

@ -182,10 +182,11 @@
@delete ( -- ) @delete ( -- )
#00 ;on-frame/f STA #00 ;on-frame/f STA
get-eof get-from INC2 NEQ2 ?{ JMP2r } .selection/length LDZ2 ORA ?{
.selection/length LDZ2 #0000 EQU2 ?{ erase-selection !<select-reset> } get-from INC2k get-eof NEQ2 ?{ POP2 JMP2r }
get-from cut-char <redraw> cut-char <redraw>
!file-save !file-save }
erase-selection !<select-reset>
@get-eof ( -- addr* ) @get-eof ( -- addr* )
get-page !scap/ get-page !scap/