Skip to content

Commit

Permalink
Some keywords, "true", "false", and "nil" should be treated as a vari…
Browse files Browse the repository at this point in the history
…able
  • Loading branch information
aycabta committed Jul 27, 2019
1 parent f275ead commit 667cdc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/irb/completion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def self.retrieve_completion_data(input, doc_namespace = false)
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}
Expand Down

0 comments on commit 667cdc3

Please sign in to comment.