lukebuehler/CShell — pull request #56 by lakebranch (2014-09-12 14:39:26+00:00)
Title: Blank line at the end of the command history in REPL

I guess this one is up to personal taste. I sometimes go back in command history to check something and then back down again to write a new command. In the current implementation it stops at the last command forcing me to delete all the text in that line and then enter my new command. My proposed change gives you a blank line when going past the last command in command history.

A problem with my implementation is that if you write something on a blank line, go up in command history and then back down again, you get a blank line - and the stuff you wrote is gone. However, I wasn't sure were to store that text without passing an argument to GetPreviousCommand(). Maybe I'll take a stab at that later.