From 014c959fee6dcf829177d2f4c43b2c5a655a2971 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Feb 2026 00:25:08 +0000 Subject: [PATCH] Improve comment clarity in FindCompileCommands Co-authored-by: w0rp <3518142+w0rp@users.noreply.github.com> --- autoload/ale/c.vim | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/autoload/ale/c.vim b/autoload/ale/c.vim index 9ff7e697..11c2eb3d 100644 --- a/autoload/ale/c.vim +++ b/autoload/ale/c.vim @@ -253,9 +253,10 @@ function! ale#c#FindCompileCommands(buffer) abort let l:json_file = l:c_build_dir . s:sep . 'compile_commands.json' if filereadable(l:json_file) - " Use the parent of the build dir for absolute - " paths, otherwise use the path found by searching - " upwards from the file. + " For absolute build dir paths, use the parent + " of the build dir as the project root. For + " relative paths, use the directory found by + " searching upwards from the file. let l:root = ale#path#IsAbsolute(l:dirname) \ ? fnamemodify(l:c_build_dir, ':h') \ : l:path