diff --git a/aider/ctags.py b/aider/ctags.py index 5cb05b31d..c59b5ffe6 100644 --- a/aider/ctags.py +++ b/aider/ctags.py @@ -39,6 +39,7 @@ def get_tags(filename): last += ' ' + signature path = os.path.relpath(path, os.getcwd()) + path_components = path.split(os.sep) res = [] if scope: