(notepad) Use flag for collapsed state
This commit is contained in:
parent
e6bafe74ef
commit
5d380107e4
|
@ -7,6 +7,7 @@
|
|||
|0000
|
||||
|
||||
@page $1
|
||||
@collapsed $1
|
||||
@selection &a $2 &b $2 &length $2
|
||||
|
||||
|0100
|
||||
|
@ -92,13 +93,13 @@ BRK
|
|||
|
||||
&toggle-collapse ( -> )
|
||||
|
||||
#00e0 .Screen/width DEO2
|
||||
|
||||
#00f8 #0011
|
||||
DUP2 .Screen/height DEI2 EQU2 [ JMP SWP2 POP2 ]
|
||||
.Screen/height DEO2
|
||||
.collapsed LDZ ?{ SWP2 }
|
||||
POP2 .Screen/height DEO2
|
||||
.collapsed LDZ #00 EQU .collapsed STZ
|
||||
draw-header
|
||||
redraw
|
||||
|
||||
[ LIT2 00 -Mouse/state ] DEO
|
||||
|
||||
BRK
|
||||
|
|
Loading…
Reference in New Issue