do not keep undo data in the debug buffer

This commit is contained in:
Maxime Coste 2012-09-11 19:03:13 +02:00
parent eac68f09a4
commit a0b75817a5

View File

@ -23,8 +23,9 @@ void write_debug(const String& str)
{ {
Buffer& debug_buffer = get_or_create_debug_buffer(); Buffer& debug_buffer = get_or_create_debug_buffer();
Editor editor(debug_buffer); Editor editor(debug_buffer);
editor.select(debug_buffer.end()); editor.select(debug_buffer.end()-1);
editor.insert(str); editor.insert(str);
debug_buffer.reset_undo_data();
} }
} }