Skip to content

Commit

Permalink
macos bugfix: allow .app in subfolder
Browse files Browse the repository at this point in the history
All paths in the locations array were not considered because the if test always returned true (i.e. the SuperCollider.app had to sit in /Applications). The test should be ~= 0 and thn SuperCollider.app can live inside the subfolder /Applications/SuperCollider.
ref: #200
  • Loading branch information
redFrik authored and davidgranstrom committed Jan 11, 2024
1 parent f9e75bf commit 8929739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/scnvim/sclang.lua
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function M.find_sclang_executable()
local locations = { '/Applications', '/Applications/SuperCollider' }
for _, loc in ipairs(locations) do
local app_path = string.format('%s/%s', loc, app)
if vim.fn.executable(app_path) then
if vim.fn.executable(app_path) ~= 0 then
return app_path
end
end
Expand Down

0 comments on commit 8929739

Please sign in to comment.