I didn't really change anything in your code, just a few tweaks with how the data was handled in history as far as accessing it. I believe I also added a call for end_of_line in the methods for retrieving the history. And it will remember the current line being typed in the history
up and Down work now\!
Making sure that everything is added and up to date.
omg swarley r #1 accept the pull
This doesn't work here, and it breaks ^P and ^N too :
$ ruby repl.rb
where exit was produced by hitting either up arrow or ^P. It should be 3.
I believe i actually fixed it for real this time, after addressing Mo…
…n_Ouie's issues that I had overlooked. I would like people to test and comfirm this time before i request the merge.
I see, I just spent time on it and I believe I addressed the issue. I'll have some people test it before I bother you again with a pull request.
Yes, the up and down arrows do work as intended. I'm noticing the history is not loaded as it should be, or more specifically, it is not recorded. I will begin working on that now.
Thanks for the help, I merged this. ;)
No problem, its very fun to read and modify your code. It is structured very well. Good work!