Skip to content

Commit

Permalink
wip raise したくない
Browse files Browse the repository at this point in the history
  • Loading branch information
ima1zumi committed Nov 28, 2024
1 parent c922870 commit 8075470
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/reline/line_editor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,15 @@ def editing_mode
target = target.downcase if @config.completion_ignore_case
list.select do |item|
next unless item
next item unless Encoding.compatible?(target.encoding, item.encoding)

unless Encoding.compatible?(target.encoding, item.encoding)
if @is_multiline
next item
else
# Workaround for readline-ext test
raise Encoding::CompatibilityError
end
end

if @config.completion_ignore_case
item.downcase.start_with?(target)
Expand Down

0 comments on commit 8075470

Please sign in to comment.