1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/irb/completion.rb: complate correctry string literal. fix [Bug #1145].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
keiju 2011-06-29 15:08:41 +00:00
parent 23658b355c
commit f1ce1f1dbf
2 changed files with 15 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Thu Jun 30 00:03:20 2011 Keiju Ishitsuka <keiju@ishitsuka.com>
* lib/irb/completion.rb: complate correctry string literal. fix
[Bug #1145].
Wed Jun 29 23:42:51 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c: avoided using timev.

View file

@ -39,6 +39,14 @@ module IRB
# puts "input: #{input}"
case input
when /^((["'`]).*\2)\.([^.]*)$/
# String
receiver = $1
message = $3
candidates = String.instance_methods.collect{|m| m.to_s}
select_message(receiver, message, candidates)
when /^(\/[^\/]*\/)\.([^.]*)$/
# Regexp
receiver = $1
@ -214,7 +222,8 @@ module IRB
end
if Readline.respond_to?("basic_word_break_characters=")
Readline.basic_word_break_characters= " \t\n\"\\'`><=;|&{("
# Readline.basic_word_break_characters= " \t\n\"\\'`><=;|&{("
Readline.basic_word_break_characters= " \t\n`><=;|&{("
end
Readline.completion_append_character = nil
Readline.completion_proc = IRB::InputCompletor::CompletionProc