mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-06-29 09:20: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:
parent
b845b35515
commit
7870e38fd7
|
@ -10212,7 +10212,21 @@ END FUNCTION
|
||||||
FUNCTION idezgetroot$
|
FUNCTION idezgetroot$
|
||||||
'note: does NOT including a trailing / or \ on the right
|
'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
|
END FUNCTION
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue