mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-25 05:28:06 +11:00
ed: update curline after a, i and d
This commit is contained in:
parent
c839703682
commit
c96c8e7df0
@ -116,6 +116,7 @@ edMain:
|
|||||||
xor a
|
xor a
|
||||||
ret
|
ret
|
||||||
.doD:
|
.doD:
|
||||||
|
ld (ED_CURLINE), de
|
||||||
; bufDelLines expects an exclusive upper bound, which is why we inc DE.
|
; bufDelLines expects an exclusive upper bound, which is why we inc DE.
|
||||||
inc de
|
inc de
|
||||||
call bufDelLines
|
call bufDelLines
|
||||||
@ -127,6 +128,7 @@ edMain:
|
|||||||
call bufScratchpadAdd ; --> HL
|
call bufScratchpadAdd ; --> HL
|
||||||
; insert index in DE, line offset in HL. We want the opposite.
|
; insert index in DE, line offset in HL. We want the opposite.
|
||||||
ex de, hl
|
ex de, hl
|
||||||
|
ld (ED_CURLINE), hl
|
||||||
call bufInsertLine
|
call bufInsertLine
|
||||||
call printcrlf
|
call printcrlf
|
||||||
jr .mainLoop
|
jr .mainLoop
|
||||||
|
Loading…
Reference in New Issue
Block a user