1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-06-26 17:10:38 +00:00

Moves breakpoints and line skips when deleting lines.

This commit is contained in:
FellippeHeitor 2021-07-20 03:11:16 -03:00
parent adf963b007
commit fcc243f902

View file

@ -7394,6 +7394,16 @@ SUB idedelline (i)
END IF
NEXT
FOR b = i TO iden - 1
SWAP IdeBreakpoints(b), IdeBreakpoints(b + 1)
NEXT
REDIM _PRESERVE IdeBreakpoints(iden - 1) AS _BYTE
FOR b = i TO iden - 1
SWAP IdeSkipLines(b), IdeSkipLines(b - 1)
NEXT
REDIM _PRESERVE IdeSkipLines(iden - 1) AS _BYTE
idegotoline i
textlen = CVL(MID$(idet$, ideli, 4))
idet$ = LEFT$(idet$, ideli - 1) + RIGHT$(idet$, LEN(idet$) - ideli + 1 - 8 - textlen)
@ -8209,7 +8219,6 @@ SUB ideinsline (i, text$)
NEXT
IdeSkipLines(i) = 0
text$ = RTRIM$(text$)
IF i = -1 THEN i = idel