write_debug automatically appends an eol to the message
This commit is contained in:
parent
c636a291bd
commit
07e5655ac1
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user