mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
style: remove backticks from filename autocomplete
This commit is contained in:
parent
b4537dfb22
commit
387441b48a
1 changed files with 2 additions and 2 deletions
|
@ -113,7 +113,7 @@ class AutoCompleter(Completer):
|
|||
|
||||
candidates = self.words
|
||||
candidates.update(set(self.fname_to_rel_fnames))
|
||||
candidates = [(word, f"`{word}`") for word in candidates]
|
||||
candidates = [(word, f"`{word}`" if word not in self.fname_to_rel_fnames else word) for word in candidates]
|
||||
|
||||
last_word = words[-1]
|
||||
for word_match, word_insert in candidates:
|
||||
|
@ -122,7 +122,7 @@ class AutoCompleter(Completer):
|
|||
if rel_fnames:
|
||||
for rel_fname in rel_fnames:
|
||||
yield Completion(
|
||||
f"`{rel_fname}`", start_position=-len(last_word), display=rel_fname
|
||||
rel_fname, start_position=-len(last_word), display=rel_fname
|
||||
)
|
||||
else:
|
||||
yield Completion(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue