mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Readline.completion_proc accepts US-ASCII
This commit is contained in:
parent
4d7ada10b1
commit
075e1acb4c
1 changed files with 3 additions and 1 deletions
|
@ -406,7 +406,9 @@ class Reline::LineEditor
|
|||
private def complete_internal_proc(list, is_menu)
|
||||
preposing, target, postposing = @retrieve_completion_block.(@line, @byte_pointer)
|
||||
list = list.select { |i|
|
||||
raise Encoding::CompatibilityError if i and i.encoding != @encoding
|
||||
if i and i.encoding != Encoding::US_ASCII and i.encoding != @encoding
|
||||
raise Encoding::CompatibilityError
|
||||
end
|
||||
i&.start_with?(target)
|
||||
}
|
||||
if is_menu
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue