mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-17 00:45:15 +00:00
Prevents issues when deleting lines in normal mode.
This commit is contained in:
parent
dfb33206b4
commit
603cc585e8
|
@ -7394,6 +7394,7 @@ SUB idedelline (i)
|
||||||
END IF
|
END IF
|
||||||
NEXT
|
NEXT
|
||||||
|
|
||||||
|
IF vWatchOn THEN
|
||||||
FOR b = i TO iden - 1
|
FOR b = i TO iden - 1
|
||||||
SWAP IdeBreakpoints(b), IdeBreakpoints(b + 1)
|
SWAP IdeBreakpoints(b), IdeBreakpoints(b + 1)
|
||||||
NEXT
|
NEXT
|
||||||
|
@ -7403,6 +7404,7 @@ SUB idedelline (i)
|
||||||
SWAP IdeSkipLines(b), IdeSkipLines(b - 1)
|
SWAP IdeSkipLines(b), IdeSkipLines(b - 1)
|
||||||
NEXT
|
NEXT
|
||||||
REDIM _PRESERVE IdeSkipLines(iden - 1) AS _BYTE
|
REDIM _PRESERVE IdeSkipLines(iden - 1) AS _BYTE
|
||||||
|
END IF
|
||||||
|
|
||||||
idegotoline i
|
idegotoline i
|
||||||
textlen = CVL(MID$(idet$, ideli, 4))
|
textlen = CVL(MID$(idet$, ideli, 4))
|
||||||
|
@ -8207,6 +8209,7 @@ SUB ideinsline (i, text$)
|
||||||
END IF
|
END IF
|
||||||
NEXT
|
NEXT
|
||||||
|
|
||||||
|
IF vWatchOn THEN
|
||||||
REDIM _PRESERVE IdeBreakpoints(iden + 1) AS _BYTE
|
REDIM _PRESERVE IdeBreakpoints(iden + 1) AS _BYTE
|
||||||
FOR b = iden + 1 TO i STEP -1
|
FOR b = iden + 1 TO i STEP -1
|
||||||
SWAP IdeBreakpoints(b), IdeBreakpoints(b - 1)
|
SWAP IdeBreakpoints(b), IdeBreakpoints(b - 1)
|
||||||
|
@ -8218,6 +8221,7 @@ SUB ideinsline (i, text$)
|
||||||
SWAP IdeSkipLines(b), IdeSkipLines(b - 1)
|
SWAP IdeSkipLines(b), IdeSkipLines(b - 1)
|
||||||
NEXT
|
NEXT
|
||||||
IdeSkipLines(i) = 0
|
IdeSkipLines(i) = 0
|
||||||
|
END IF
|
||||||
|
|
||||||
text$ = RTRIM$(text$)
|
text$ = RTRIM$(text$)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue