Fixed issue with delete
This commit is contained in:
parent
6d1037a3cd
commit
12d8d058a9
|
@ -70,8 +70,7 @@
|
||||||
DUP #08 NEQ ?{ erase }
|
DUP #08 NEQ ?{ erase }
|
||||||
DUP #7f NEQ ?{ delete }
|
DUP #7f NEQ ?{ delete }
|
||||||
DUP #09 LTH ?{ DUP insert }
|
DUP #09 LTH ?{ DUP insert }
|
||||||
POP #00 ;on-frame/f STA
|
POP BRK
|
||||||
BRK
|
|
||||||
|
|
||||||
@on-mouse-head ( -> )
|
@on-mouse-head ( -> )
|
||||||
[ LIT2 00 -Mouse/state ] DEI NEQ #41 ADD ;mouse-icn <update-cursor>
|
[ LIT2 00 -Mouse/state ] DEI NEQ #41 ADD ;mouse-icn <update-cursor>
|
||||||
|
@ -123,6 +122,8 @@
|
||||||
@|editor )
|
@|editor )
|
||||||
|
|
||||||
@insert ( char -- )
|
@insert ( char -- )
|
||||||
|
DUP #7f LTH ?{ POP JMP2r }
|
||||||
|
#00 ;on-frame/f STA
|
||||||
get-from scap/ get-page #1000 ADD2 LTH2 ?{ POP JMP2r }
|
get-from scap/ get-page #1000 ADD2 LTH2 ?{ POP JMP2r }
|
||||||
( | convert linebreaks )
|
( | convert linebreaks )
|
||||||
DUP #0d EQU #03 MUL SUB .selection/length LDZ2 #0000 EQU2 ?{ erase-selection }
|
DUP #0d EQU #03 MUL SUB .selection/length LDZ2 #0000 EQU2 ?{ erase-selection }
|
||||||
|
@ -132,6 +133,7 @@
|
||||||
!file-save
|
!file-save
|
||||||
|
|
||||||
@erase ( -- )
|
@erase ( -- )
|
||||||
|
#00 ;on-frame/f STA
|
||||||
.selection/length LDZ2 #0000 EQU2 ?{ erase-selection !<select-reset> }
|
.selection/length LDZ2 #0000 EQU2 ?{ erase-selection !<select-reset> }
|
||||||
get-from get-page NEQ2 [ JMP JMP2r ] get-from #0001 SUB2 DUP2 cut-char <select-from>
|
get-from get-page NEQ2 [ JMP JMP2r ] get-from #0001 SUB2 DUP2 cut-char <select-from>
|
||||||
!file-save
|
!file-save
|
||||||
|
@ -141,6 +143,7 @@
|
||||||
!file-save
|
!file-save
|
||||||
|
|
||||||
@delete ( -- )
|
@delete ( -- )
|
||||||
|
#00 ;on-frame/f STA
|
||||||
get-eof get-from SUB2 ORA #01 [ JCN JMP2r ] .selection/length LDZ2 #0000 EQU2 ?{ erase-selection !<select-reset> }
|
get-eof get-from SUB2 ORA #01 [ JCN JMP2r ] .selection/length LDZ2 #0000 EQU2 ?{ erase-selection !<select-reset> }
|
||||||
get-from cut-char <redraw>
|
get-from cut-char <redraw>
|
||||||
!file-save
|
!file-save
|
||||||
|
|
Loading…
Reference in New Issue