linefeed on empty command

This commit is contained in:
MichaelDvP
2020-11-08 12:43:54 +01:00
committed by GitHub
parent f997e88ca0
commit effe7cf543

View File

@@ -495,7 +495,8 @@ void Shell::maximum_command_line_length(size_t length) {
void Shell::process_command() { void Shell::process_command() {
if (line_buffer_.empty()) { if (line_buffer_.empty()) {
return; println();
return;
} }
line_old_ = line_buffer_; line_old_ = line_buffer_;
while (!line_buffer_.empty()) { while (!line_buffer_.empty()) {