This repository has been archived by the owner on Nov 28, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
o commandResult calls newPromptBox which sets promptText to the empty string o addToHistory uses the value of promptText to push into the history array o thus, whenever commandResult was called before addToHistory, an empty string would be placed on the history array Now, addToHistory is always called before commandResult so it pushes the command to the history array in all cases.
- Loading branch information
Showing
2 changed files
with
3 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters