From de18328192de61be6f510c7402e1d7bd23efef6a Mon Sep 17 00:00:00 2001 From: aycabta Date: Sat, 20 Jul 2019 02:53:40 +0900 Subject: Some keywords, "true", "false", and "nil" should be treated as a variable --- lib/irb/completion.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/irb/completion.rb') diff --git a/lib/irb/completion.rb b/lib/irb/completion.rb index f75dd0ebcd..04f5c447c9 100644 --- a/lib/irb/completion.rb +++ b/lib/irb/completion.rb @@ -205,7 +205,7 @@ module IRB sep = $2 message = Regexp.quote($3) - gv = eval("global_variables", bind).collect{|m| m.to_s} + gv = eval("global_variables", bind).collect{|m| m.to_s}.append("true", "false", "nil") lv = eval("local_variables", bind).collect{|m| m.to_s} iv = eval("instance_variables", bind).collect{|m| m.to_s} cv = eval("self.class.constants", bind).collect{|m| m.to_s} -- cgit v1.2.3