diff options
author | aycabta <[email protected]> | 2019-07-20 02:53:40 +0900 |
---|---|---|
committer | aycabta <[email protected]> | 2019-07-20 02:53:47 +0900 |
commit | de18328192de61be6f510c7402e1d7bd23efef6a (patch) | |
tree | f61cedfa6f0be772440d3e2e477904b33ef28286 | |
parent | 0a16ff9f8366fd0d751191bd9c6eaa47f0ae33c8 (diff) |
Some keywords, "true", "false", and "nil" should be treated as a variable
-rw-r--r-- | lib/irb/completion.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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} |