diff --git a/aider/repomap.py b/aider/repomap.py index f6f3cadb6..64051aad3 100644 --- a/aider/repomap.py +++ b/aider/repomap.py @@ -99,7 +99,8 @@ class RepoMap: if self.use_ctags: files_listing = self.get_tags_map(other_files) - if self.token_count(files_listing) < max_map_tokens: + tokens = self.token_count(files_listing) + if tokens < max_map_tokens: ctags_msg = " with selected ctags info" return files_listing, ctags_msg