Skip to content

Commit 88d8a92

Browse files
committed
Fixed activating file from the command line after project path is set (#829, #830).
1 parent 4d75e3b commit 88d8a92

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/editor/singleinstance.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ else -- something different is running on our port
6969
else
7070
local failed = false
7171
for _, filename in ipairs(ide.filenames) do
72-
cln:send(protocol.client.requestloading:format(ide:MergePath(ide.cwd or "", filename)))
72+
cln:send(protocol.client.requestloading
73+
:format(ide.cwd and GetFullPathIfExists(ide.cwd, filename) or filename))
7374

7475
local msg, err = cln:receive()
7576
if msg ~= protocol.server.answerok then

src/main.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ SettingsRestoreView()
616616

617617
do
618618
for _, filename in ipairs(ide.filenames) do
619-
ide:ActivateFile(ide:MergePath(ide.cwd or "", filename))
619+
ide:ActivateFile(ide.cwd and GetFullPathIfExists(ide.cwd, filename) or filename)
620620
end
621621
if ide:GetEditorNotebook():GetPageCount() == 0 then NewFile() end
622622
end

0 commit comments

Comments
 (0)