1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-01 08:23:05 +03:00

write_debug automatically appends an eol to the message

This commit is contained in:
Maxime Coste 2012-11-19 19:03:01 +01:00
parent c636a291bd
commit 07e5655ac1
2 changed files with 3 additions and 3 deletions

View File

@ -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();
}

View File

@ -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;