## Summary [Readline::HISTORY.delete_at](https://github.com/ConnorAtherton/rb-readline/blob/9fba246073f78831b7c7129c76cc07d8476a8892/lib/readline.rb#L468) method not working for indices of negative values. ## Steps to Reproduce ``` irb require 'readline' Readline::HISTORY.push('a') => ["a"] Readline::HISTORY.push('b') => ["b"] Readline::HISTORY.push('c') => ["c"] >> Readline::HISTORY.delete_at(-1) /var/lib/gems/2.7.0/gems/rb-readline-0.5.5/lib/readline.rb:458:in `delete_at': undefined method `+' for nil:NilClass (NoMethodError) ``` ## Additional Information ``` ruby def self.delete_at(index) if index < 0 i += RbReadline.history_length ``` `i` variable is not defined here, which I think is causing the problem. I guess it was meant to be `index`.