mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 11:25:33 +00:00
committed by
Justin M. Keyes
parent
6cfc91c0b9
commit
70393f2e30
@@ -29,7 +29,7 @@ def GetCompilationInfoForFile(filename):
|
|||||||
c_file = basename + '.c'
|
c_file = basename + '.c'
|
||||||
# for pure headers (no c file), default to main.c
|
# for pure headers (no c file), default to main.c
|
||||||
if not os.path.exists(c_file):
|
if not os.path.exists(c_file):
|
||||||
c_file = os.path.join(DirectoryOfThisScript(), 'main.c')
|
c_file = os.path.join(DirectoryOfThisScript(), 'nvim', 'main.c')
|
||||||
if os.path.exists(c_file):
|
if os.path.exists(c_file):
|
||||||
compilation_info = database.GetCompilationInfoForFile(c_file)
|
compilation_info = database.GetCompilationInfoForFile(c_file)
|
||||||
if compilation_info.compiler_flags_:
|
if compilation_info.compiler_flags_:
|
||||||
|
|||||||
Reference in New Issue
Block a user