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

Fixes IDE not restoring last session's window size.

How? I don't know. The bug shows when the code is replaced with a mere _CWD$ but disappears when the cd > or pwd > approach is restored.

Go figure.
This commit is contained in:
FellippeHeitor 2020-01-16 11:16:02 -03:00
parent b845b35515
commit 7870e38fd7

View file

@ -10212,7 +10212,21 @@ END FUNCTION
FUNCTION idezgetroot$
'note: does NOT including a trailing / or \ on the right
idezgetroot$ = _CWD$
IF os$ = "WIN" THEN
SHELL _HIDE "cd >.\internal\temp\root.txt"
OPEN ".\internal\temp\root.txt" FOR INPUT AS #150
LINE INPUT #150, a$
idezgetroot$ = a$
CLOSE #150
EXIT FUNCTION
ELSE
SHELL _HIDE "pwd >./internal/temp/root.txt"
OPEN "./internal/temp/root.txt" FOR INPUT AS #150
LINE INPUT #150, a$
idezgetroot$ = a$
CLOSE #150
EXIT FUNCTION
END IF
END FUNCTION