aboutsummaryrefslogtreecommitdiffstats
path: root/lib/reline.rb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2019-05-28 08:38:55 +0900
committeraycabta <aycabta@gmail.com>2019-05-28 08:38:55 +0900
commit57b4df07bc1e863c48a3b0f4c3185de431454695 (patch)
tree27c865a65c919936e7682c47d814a9c87d74daae /lib/reline.rb
parent74c88e7cda8640084077003ec00b004f9dd7ae73 (diff)
downloadruby-57b4df07bc1e863c48a3b0f4c3185de431454695.tar.gz
Use Reline.completer_quote_characters to complete
Diffstat (limited to 'lib/reline.rb')
-rw-r--r--lib/reline.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/reline.rb b/lib/reline.rb
index 0b6eddf498..656fab2fea 100644
--- a/lib/reline.rb
+++ b/lib/reline.rb
@@ -239,21 +239,6 @@ module Reline
Reline::IOGate.get_screen_size
end
- def retrieve_completion_block(line, byte_pointer)
- break_regexp = /[#{Regexp.escape(@@basic_word_break_characters)}]/
- before_pointer = line.byteslice(0, byte_pointer)
- break_point = before_pointer.rindex(break_regexp)
- if break_point
- preposing = before_pointer[0..(break_point)]
- block = before_pointer[(break_point + 1)..-1]
- else
- preposing = ''
- block = before_pointer
- end
- postposing = line.byteslice(byte_pointer, line.bytesize)
- [preposing, block, postposing]
- end
-
def eof?
@@line_editor.eof?
end
@@ -313,7 +298,6 @@ module Reline
@@line_editor.output_modifier_proc = @@output_modifier_proc
@@line_editor.dig_perfect_match_proc = @@dig_perfect_match_proc
@@line_editor.pre_input_hook = @@pre_input_hook
- @@line_editor.retrieve_completion_block = method(:retrieve_completion_block)
@@line_editor.rerender
if IS_WINDOWS