(notepad) Block erasing
This commit is contained in:
parent
5d1ec16e79
commit
95345d5941
|
@ -180,14 +180,13 @@ BRK
|
|||
|
||||
@erase ( -- )
|
||||
|
||||
.selection/length LDZ2 #0000 EQU2 ?&no-block
|
||||
.selection/length LDZ2 #0001 LTH2 ?&no-block
|
||||
erase-selection
|
||||
!reset-selection
|
||||
&no-block
|
||||
|
||||
.selection/from LDZ2 ;mem NEQ2 [ JMP JMP2r ]
|
||||
|
||||
|
||||
.selection/from LDZ2 #0001 SUB2
|
||||
DUP2 cut-char
|
||||
|
||||
|
@ -320,6 +319,7 @@ JMP2r
|
|||
@select-to ( addr* -- )
|
||||
|
||||
.selection/to STZ2
|
||||
.selection/to LDZ2 .selection/from LDZ2 SUB2 .selection/length STZ2
|
||||
redraw
|
||||
|
||||
JMP2r
|
||||
|
|
Loading…
Reference in New Issue