From 4366de40800e1bb15ef4928b7195414d54136f4d Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 24 May 2023 14:38:30 -0700 Subject: [PATCH] avoid useless / prefix --- aider/ctags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/ctags.py b/aider/ctags.py index fa54c3069..40dc826a4 100644 --- a/aider/ctags.py +++ b/aider/ctags.py @@ -57,7 +57,7 @@ def split_path(path, root_dname): def fname_to_components(fname, with_colon): - path_components = os.path.split(fname) + path_components = fname.split(os.sep) res = [pc + os.sep for pc in path_components[:-1]] if with_colon: res.append(path_components[-1] + ":")