Skip to content

Commit

Permalink
Write new line character sequence at end of print()
Browse files Browse the repository at this point in the history
Fix regression of commit

5e507c9 "Add server side ncurses terminal"

where no line termination character was printed after a
lua print outside of terminal mode.

Fixes #3350.
  • Loading branch information
est31 committed Nov 8, 2015
1 parent 6f95bb1 commit 4ae6e50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.cpp
Expand Up @@ -1473,7 +1473,7 @@ void Server::printToConsoleOnly(const std::string &text)
m_admin_chat->outgoing_queue.push_back(
new ChatEventChat("", utf8_to_wide(text)));
} else {
std::cout << text;
std::cout << text << std::endl;
}
}

Expand Down

0 comments on commit 4ae6e50

Please sign in to comment.