Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 6, 2023
1 parent 6367a18 commit 3d43be3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion babi/prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def _tab(self) -> None:

def _complete_file(self) -> None:
# only allow completion at the end of the prompt or before a separator
if self._x != len(self._s) and self._s[self._x] not in ("/", " "):
if self._x != len(self._s) and self._s[self._x] not in ('/', ' '):
return
partial = self._s[:self._x]
completions = glob.glob(f'{partial}*')
Expand Down

0 comments on commit 3d43be3

Please sign in to comment.