diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/reline/line_editor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index 928b043669..5d23c82ded 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -553,7 +553,7 @@ class Reline::LineEditor raise Encoding::CompatibilityError, "#{target.encoding.name} is not comaptible with #{i.encoding.name}" end if @config.completion_ignore_case - i&.downcase.start_with?(target.downcase) + i&.downcase&.start_with?(target.downcase) else i&.start_with?(target) end |