diff --git a/src/debug.cc b/src/debug.cc index e3f73aeb..7f4c1c60 100644 --- a/src/debug.cc +++ b/src/debug.cc @@ -24,7 +24,7 @@ void write_debug(const String& str) Buffer& debug_buffer = get_or_create_debug_buffer(); Editor editor(debug_buffer); editor.select(debug_buffer.end()-1); - editor.insert(str); + editor.insert(str + "\n"); debug_buffer.reset_undo_data(); } diff --git a/src/main.cc b/src/main.cc index 804fd7fd..fdbebd22 100644 --- a/src/main.cc +++ b/src/main.cc @@ -663,8 +663,8 @@ int main(int argc, char* argv[]) register_highlighters(); register_filters(); - write_debug("*** This is the debug buffer, where debug info will be written ***\n"); - write_debug("pid: " + int_to_str(getpid()) + "\n"); + write_debug("*** This is the debug buffer, where debug info will be written ***"); + write_debug("pid: " + int_to_str(getpid())); write_debug("utf-8 test: é á ï"); Server server;