Skip to content

Commit

Permalink
Fix an issue with casing of completions
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Schmeichel committed Aug 8, 2024
1 parent d532221 commit 60c9677
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mycli/sqlcompleter.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,9 @@ def find_matches(text, collection, start_only=False, fuzzy=True, casing=None):
in the collection of available completions.
"""

if not text:
casing = None

if casing == 'auto':
casing = 'lower' if text and text[-1].islower() else 'upper'

Expand Down

0 comments on commit 60c9677

Please sign in to comment.