* 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:
parent
23658b355c
commit
f1ce1f1dbf
@ -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>
|
Wed Jun 29 23:42:51 2011 Tadayoshi Funaba <tadf@dotrb.org>
|
||||||
|
|
||||||
* ext/date/date_core.c: avoided using timev.
|
* ext/date/date_core.c: avoided using timev.
|
||||||
|
@ -39,6 +39,14 @@ module IRB
|
|||||||
# puts "input: #{input}"
|
# puts "input: #{input}"
|
||||||
|
|
||||||
case 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 /^(\/[^\/]*\/)\.([^.]*)$/
|
when /^(\/[^\/]*\/)\.([^.]*)$/
|
||||||
# Regexp
|
# Regexp
|
||||||
receiver = $1
|
receiver = $1
|
||||||
@ -214,7 +222,8 @@ module IRB
|
|||||||
end
|
end
|
||||||
|
|
||||||
if Readline.respond_to?("basic_word_break_characters=")
|
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
|
end
|
||||||
Readline.completion_append_character = nil
|
Readline.completion_append_character = nil
|
||||||
Readline.completion_proc = IRB::InputCompletor::CompletionProc
|
Readline.completion_proc = IRB::InputCompletor::CompletionProc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user