Skip to content
  • Christian Hergert's avatar
    completion: improve fuzzy matching · 3d0e71b7
    Christian Hergert authored
    This ensures that we match 'E' before 'e' in 'Endianness' if the input
    character is 'e'. Otherwise, 'end' won't match and that is not the
    expected behavior.
    
    This just takes the earliest of 'E' or 'e' as the match for any character
    that has a toupper() variant, at the cost of running additional matches.
    
    This code does need to stay fast, but it seemed fast enough in testing.
    
    Fixes #673
    3d0e71b7