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:
parent
ad8bbe0470
commit
5acd16612c
2229
internal/c/qbx3.cpp
Normal file
2229
internal/c/qbx3.cpp
Normal file
File diff suppressed because it is too large
Load diff
|
@ -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$
|
||||
|
|
Loading…
Reference in a new issue