1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-01 10:20:42 +00:00

Added proper formatting for spaces in CTRL-K inserts.

This commit is contained in:
SteveMcNeill 2020-12-31 09:12:53 -05:00
parent ad8bbe0470
commit 5acd16612c
2 changed files with 2231 additions and 1 deletions

2229
internal/c/qbx3.cpp Normal file

File diff suppressed because it is too large Load diff

View file

@ -4905,8 +4905,9 @@ FUNCTION ide2 (ignore)
_LIMIT 30
LOOP UNTIL tempk <> 0
END IF
tempk$ = _trim$(tempk$)
tempk$ = _TRIM$(tempk$)
a$ = idegetline(idecy)
DO UNTIL LEN(a$) >= idecx: a$ = a$ + " ": LOOP 'add spaces if necessary to the end of a$ so we insert in the proper position.
l$ = LEFT$(a$, idecx - 1): r$ = RIGHT$(a$, LEN(a$) - idecx + 1)
text$ = l$ + tempk$ + r$
idesetline idecy, text$