From af85c81c13e26d7b202d48dbe9be61a347491935 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 19 May 2023 10:32:55 -0700 Subject: [PATCH] fixed missing case of just the filename --- aider/ctags.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aider/ctags.py b/aider/ctags.py index 216f9caa6..ac888d707 100644 --- a/aider/ctags.py +++ b/aider/ctags.py @@ -63,10 +63,10 @@ def get_tags(filename, root_dname): output = subprocess.check_output(cmd).decode("utf-8") output = output.splitlines() - if not output: - yield split_path(filename, root_dname) - tags = [] + if not output: + tags.append(split_path(filename, root_dname)) + for line in output: tag = json.loads(line) path = tag.get("path")