We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2efedf3 commit 3ca6ae9Copy full SHA for 3ca6ae9
1 file changed
src/outputting.hpp
@@ -86,9 +86,11 @@ void output(std::string scramble, float avg)
86
87
for (std::string &line : scrambleLines)
88
{
89
- if (line.at(0) == ' ')
90
- {
91
- line.erase(0, 1);
+ if(line.length() < 0){
+ if (line.at(0) == ' ')
+ {
92
+ line.erase(0, 1);
93
+ }
94
}
95
96
std::cout << line << std::endl;
@@ -177,4 +179,5 @@ void outputVersion()
177
179
std::cout << "CLI_Timer version: 1.14\n\n";
178
180
std::cout << "Scramble outputs ⅓ of the screen + avg to right" << std::endl;
181
std::cout << "Moved the outputting code to another file." << std::endl;
182
+ std::cout << "Fixed a bug if something was of length 0." << std::endl;
183
0 commit comments