From 020c276ecffceb23d997f7557bd171efd4abbd5a Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 24 May 2023 14:32:25 -0700 Subject: [PATCH] with-colon --- aider/ctags.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/aider/ctags.py b/aider/ctags.py index 9c17a6b51..fa54c3069 100644 --- a/aider/ctags.py +++ b/aider/ctags.py @@ -59,7 +59,10 @@ def split_path(path, root_dname): def fname_to_components(fname, with_colon): path_components = os.path.split(fname) res = [pc + os.sep for pc in path_components[:-1]] - res.append(path_components[-1] + ":") + if with_colon: + res.append(path_components[-1] + ":") + else: + res.append(path_components[-1]) return res